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
5.6m questions
7.3m answers