rectangular coordinates and polar coordinates are related to each other by the following relation
On polar coordinates, the first coordinate is the radius and the second the angle. Using this information, we have
Solving thiose expressions, we have
Then, the coordinates of the point Q are