r=½x+y

Solve for y

just subtract 1/2 x from both sides

r- 1/2 x =y