Two wires of ratio of lengths 1 : 2 and tensions in the ratio 3 : 1 have the ratio of their fundamental frequencies having ration 2 : 1. Find the ratio of their masses.