For this exercise you need to use the formula for calculate the distance between two points:
In this case you know that the points are:
So you can set up that:
Substitute the corresponding coordinates into the formula and then evaluate, in order to find the distance from point Q to point R:
The answer is;