In this context, this g does not represent the mass measurement grams. The Wmg triangle can be used to find weight (W), or mass (m) or gravitational field strength (g).