Answer:
First, I go by finding x and r.
After that, put the numbers (ie. x= # and r=#) into the equations. Check it by finding L.H.S and R.H.S. (ie. left hand side and right hand side)
If you are still confused, comment down and I'll try to provide better explanation!