SSC CHSL 14 Aug 2023 Shift 3 — Question 51 (Algebra)

Easy2023
If p+q=12p + q = 12 and pq=14pq = 14, then find the value of p2−pq+q2p^2 - pq + q^2.