When would the tail of a comet appear to become longer?

A. as it gets closer to earth
B. as it gets farther from the sun
C. as it gets farther from earth
D. as it gets closer to the sun

B. as it gets farther from the sun