The radius of a planet A is twice that of planet B. The average density of the material of planet A is thrice that of planet B. The ratio between the values of acceleration due to gravity on the surface of planet A and that on the surface of planet B is :