Let a and b be the two numbers.
The arithmetic mean is 34.
a+b
2 = 34
a + b = 68
b = 68 − a
The geometric mean is 16.
√
pab = 16
a(68 − a) = 16
68a − a2 = 256
a2 − 68a + 256
(a − 64)(a − 4)
a = 64 or a = 4 so the numbers are 4 and 64.
In
√ the given answer, the geometric mean of 40 and 28 cannot be 16.
40 × 28 = 33.466 ̸= 16