Final answer:
The Andromeda Galaxy is 2.53 x 10^6 light-years from Earth. Using the conversion of 1 light-year to 9.5 trillion kilometers, the distance to Andromeda is calculated to be 24.035 x 10^18 kilometers.
Step-by-step explanation:
The closest galaxy to Earth, other than the Milky Way, is the Andromeda Galaxy, which is 2.53 x 10^6 light-years away. To calculate the distance from Earth in kilometers, we use the given conversion rate of 1 light-year being equal to 9.5 trillion kilometers.
Distance in kilometers = 2.53 x 10^6 light-years x 9.5 trillion kilometers/light-year
= 2.53 x 10^6 x 9.5 x 10^12 kilometers
= 24.035 x 10^18 kilometers
Therefore, the distance to the Andromeda Galaxy from Earth is 24.035 x 10^18 kilometers.