Solution:Let the HCF = x
LCM = 20x
As per question,
x + 20x = 504 ⇒ x = 24
So, HCF = 24 and LCM = 480
Let the numbers = a and b
We know,
LCM × HCF = Product of the numbers
ab = 11520
(24)² = (a + b)² − 4 × 11,520
576 + 46,080 = (a + b)²
(a + b) = √46,656 = 216
So, sum of numbers = 216