to find Q we need to make 2 distance measure
that they fulfill these conditions
PS=RQ and RS=QP
the formula of distances between 2 points is
Distance PS
Distance RQ
where x and y are de coordinates of Q
Distance RS
Distance QP
now solve the equals
PS=RQ
RS=QP
if I subtract the two equations I will get
and i will solve to find x
the value of x is 2, then I can replace x on any equation to find y
so replacing
use factor to solve y
then y will have two values
the real coordinate is y=3 because if is y=-5 the point dont form a rectangle
if x=2 and y=3 the point Q is (2,3)