Equation of
PS is
y−2=(2−3)(1−2)(x−1) ⇒ x−y+1=0.∴ Equation of QR ( porallel to PS) is x−y+λ=0
As this passes through R( 5,7 )
∴5−7+λ=0⇒λ=2
Hence equation of QR is x−y+2=0 ...(1)
Similarly equation of SR is
y−3=3−72−5(x−2) ⇒4x−3y+1=0
∴ Equation of PQ (line parallel to SR) is
4x−3y+δ=0
As this passes through P(1,2)
∴4−3×2+δ=0⇒δ=2
∴ Equation of PQ is 4x−3y+2=0 ...(2)
Solving (1) and (2) we get coordinates of Q as (4,6)
∴ length of diagonal PR is
√(5−1)2+(7−2)2=√16+25=√41
And length of diagonal SQ is
√(2−4)2+(3−6)2=√4+9=√13
Hence sum of square of length is of diagonals is 41+13=54