Y r the distances to the planets given in km, while the distances to stars & galaxies r given in light years?

I am really stumped on this quest. I think because the universe is so huge that it would be way too dificult to measure distances to stars and galaxies in km.

Your help will be appreciated, thanks

2 answers

Unless a science teacher corrects us, your answer looks correct.
Thanks :-)