Let required number are a and b
So using given conditions,
A=a+b2ora+b=2A,
G=√ab∴G2=ab
or H=2aba+b=4,∴G2=AH gives G2=4A.
Also 2A+G2=27or2A+4A=27
∴A=276=92
∴a+b2=92ora+b=9 ...(1)
Also G2=4A=4.92=18orab=18 ...(2)
From (1) and (2) we conclude that a and b are the roots of
t2−9t+18=0or(t−6)(t−3)=0
∴t=6,3
Hence the numbers are 6 and 3.