Hello. I don't have the slightest idea of how to change this equation:

r = 3cos(2q) (q being an angle, call it theta, or whatever) to coordinate form.

i know that x=r cosq and y=r sinq but how i can use this to convert to the coordinate form?

thank you. if you can please show me a step by step to undersand it well.