Dear Student,
HM between a and b will be 2ab/(a+b) and GM between them will be square_root(ab)
Given there ratio is equal to 4/5, Simplify the ratio and make the quadratic in a/b and find its solution. Final the ratio a/b will come out to be 4:1 and 1:4
Thanks.