"Their common factors are 1, 2 and 4."
that means, they should be multiples of 4
"Each number is smaller than 40"
so we list all the multiples of 4 till less than 40
4, 8, 12, 16, 20 , 24, 28, 32, 36
to get 60 with the current multiples of 4
4 + 56 = 60 ❌ 8 + 52 = 60 ❌ 12 + 48 = 60 ❌ 16 + 44 = 60 ❌ 20 + 40 = 60 ❌
so we are left with 24, 28, 32, 36
24 + 36 = 60
Factors of 24 1 × 24 2 × 12 3 × 8 4 × 6
24 has 8 factors, not six factors
24 + 36 = 60 ❌
Next combination
28 + 32 = 60
Factors of 28 1 × 28 2 × 14 4 × 7
28 has 6 factors ✅
Factors of 32 1 × 32 2 × 16 4 × 8
32 has 6 factors ✅
Their common factors are
1, 2 and 4 ✅
28 + 32 = 60 ✅
The two numbers are 28 and 32.