A magnetic needle shows identical deflections in two cases, first when one magnet is placed normal to the earth's magnetic field with its centre at a distance of 20cm from the centre of the magnetic needle, and second when another one is placed with its centre at a distance of 30cm from the centre of the needle. The correct ratio of the magnetic moments of the two magnets is?