solve step by step this problem: q-r=r, for r

add r to each side, divide each side by 2.