PLEASE ANSWER QUICK

Two stars are observed. Star A looks much brighter than star B. What other information do you need to determine which star is farther away? Why?