A ball of mass m is thrown vertically upwards. Another ball of mass 2m is thrown simultaneously at an angle θ with horizontal. Both of them hit the ground at the same time when thrown from the same height. The heights attained by the two are in the ratio ?