Let the two positive numbers be a and b, with a>b. Their geometric mean is ab.
a+b=6ab
(a+b)2=36ab
Use the identity (a−b)2=(a+b)2−4ab:
(a−b)2=36ab−4ab=32ab
Since a>b, take the positive square root:
a−b=32ab=42ab
Add this to a+b=6ab:
2a=(6+42)ab
a=(3+22)ab
Then
b=6ab−(3+22)ab
=(3−22)ab
So
ba=3−223+22
Hence, the numbers are in the ratio (3+22):(3−22).