p=b+a+2c,for b

b=

subtract a+2c from both sides.

b=p-a-2c