Answer :

undistribute x
x(q+r)=s
divide both sides by (q+r)
x=s/(q+r)
Qx+rx=s
qx=s-rx
qx/q=s-rx/q
x= s-rs/q