C. Distance from Earth
The observed brightness of a star (the apparent magnitude) to an absolute magnitude, you need to know the distance [d], to the star. Alternatively, if we know the distance and the apparent magnitude [m] of a star, we can calculate its absolute magnitude [d].
*paraphrased from "COSMOS.com"