P=a+b-4 you have to solve for a
P = a + b - 4
subtract b from both sides
P - b = a - 4
add 4 to both sides
P - b + 4 = a