Answer:

Explanation:
we would like to solve the following equation for x:

to do so isolate
to right hand side and change its sign which yields:

simplify Substraction:

get rid of only x:

simplify addition of the left hand side:

divide both sides by q+p Which yields:

cross multiplication:

distribute:

isolate -pq to the left hand side and change its sign:

rearrange it to standard form:

now notice we end up with a quadratic equation therefore to solve so we can consider factoring method to use so
factor out x:

factor out q:

group:

by Zero product property we obtain:

cancel out p from the first equation and q from the second equation which yields:

and we are done!