How are asteroids and comets similar?

A: both are frozen
B: Both orbit the sun
C: Both are composed of rock
D: Both are composed of gases.

B: Both orbit the sun