Let the two numbers be P and Q.
According to given question,
Sum of two numbers = 24
∴ P + Q = 24 ...................... (1)
Product of two numbers = 143
and, PQ = 143 .......................... (2)
As we know the formula,
∴ P 2 + Q2 = (P + Q)2 – 2PQ
Put the value from the equation (1) and (2), We will get
∴ P 2 + Q2 = (24)2 – 2 × 143
∴ P 2 + Q2 = 576 – 286 = 290