How do I solve this litreal equation?

Solve q = 1 - p for p in terms of q.

q-1=-p

-q+1=p