We know that the LCM of a prime number and a composite number is equal to their product.
So, xy = 4199
Now, x + y = 240
⇒ y = 240 − x
Substituting the value of y in xy = 4199, we will get
x( 240 − x) = 4199
⇒ 240x − x2 = 4199
⇒ x2 − 240x + 4199 = 0
⇒ x2 − 19x − 221x + 4199 = 0
⇒x(x − 19) − 221(x − 19) = 0
⇒ (x − 19)(x − 221) = 0
⇒ (x − 19) = 0 or (x − 221) = 0
⇒ x = 19, 221
∴ x = 19 and y = 221 or x = 221 and y = 19