r+pq=s-tq make q the subject
r + pq = s - tq rearrange as
pq + tq = s - r
q ( p + t ) = s - r divide both sides by p + t
q = ( s - r)
______
( p + t)
thanks