Two cones have their heights in the ratio 1 : 3 and the radii of their bases

Two cones have their heights in the ratio 1 : 3 and the radii of their bases are in the ratio 3:1. Show that their volumes are in the ratio 3:1.

Let the height of two cones be h, 3h and their radii be 3 r, r respectively
image