If you eliminate the parentheses, then add mq, you have
... y - p + mq = mx
Then dividing by m gives you the equation for x:
... x = (y - p + mq)/m
9.4m questions
12.2m answers