One way is to solve for r, rather than .

It's not necessarily obvious. You must think about it. Sometimes you must try new things.

From the cosine equation:

Substitute into the sine equation - and simplify:

You should be able to get that far. Only a little algebra remains.