The “expert’s “ answer is incorrect.
Solution is given below:
The sum of first n terms AP is of the form an2+bn for some constants a,b
We are given ap2+bp = q
aq2+bq = p
Subtracting, and dividing by (p-q) on both sides, you get
a(p+q)+b =-1
Now multiplying by (p+q) we have a(p+q)2+b(p+q) = -(p+q)
i.e.S(p+q) = -(p+q).