Which measurement of a star depends on the distance of the star from earth?

A-surface temperature
B-apparent magnitude
C-absolute magnitude
D-luminosity

B-apparent magnitude