Two bar magnets A and B are placed on the two arms of a deflection magnetometer. When their distances from the centre of the needle are 20 cm and 40 cm respectively, the needle lies in the magnetic meridian. If the moment of the magnet A is 100 Am2, then the moment of the magnet B is: