Let A=(3,−4) and B=(1,2)
As line segment AB is trisected, so line segment is either divided in ratio of 1:2 or 2:1
When AB is divided in ratio of 1:2, the coordinates
=(1(1)+2(3)3,1(2)+2(−4)3)=(73,−2)
When AB is divided in ratio of 2:1, the coordinates
=(2(1)+1(3)3,2(2)+1(−4)3)=(53,0)
Given coordinates of P and Q are (p,−2) and (53,q) respectively, so
p=73, q=0⇒3p−q=7