A faulty beam balance has pans of different masses, and its beam remains horizontal when the pans are empty. On such a beam balance, a mass of is put on one pan and it is balanced by a weight of 9 grams. When the same mass is put on the other pan, it can be balanced by a weight of 16 grams.
Find the mass in grams.