Solve for q.
s = 4p + 4q
Image below

4. q = (s -4p)/4
Hi there !
s = 4p + 4q
s - 4p = 4q
4q = s - 4p
q = (s -4p)/4
Good luck !