How Do Astronomers Study Galaxies and Figure Out What Happened Billions of Years Ago?