A ball of mass m is thrown vertically upward. Another ball of mass 2m is thrown an angle θ with the vertical. Both the balls stay in air for the same period of time. The ratio of the heights attained by the two balls respectively is x1. The value of x is _____.