Consider the given equation.
(p2+q2)3=(p3+q3)2
p6+q6+3p2q2(p2+q2)=(p6+q6+2p3q3)
3p4q2+3p2q4=2p3q3
3p2q2(p2+q2)=2p3q3
p2+q2=23pq
pq+qp=23
Hence, the value is 23.