make x the subject

y=r-qp/(x)
is the ans x=-qp/(y-r)

make the subject (p)
p+3=qp+r/(2)
is the ans p=r-6/(2-q)