Take some simple measurements, add a dash of algebra, and you basically have a way to measure an unknown mass.