Which is the right answer of R?

Rcos27-85g=0

R= 85g/cos27

R= 935N

or

R-85gcos27=0

R=85gcos27

R= 742N

Im bit confused. In M1, I was told to use the Second method, which is right for M1.

But Im doing M2 atm, and the solution uses the first method.

Can someone explain?

Thanks for your help.