/**
 * An astronomer needs to calculate the distance from Earth to a celestial body.
 * The speed of light (in km/s) and the time it takes for light to travel from Earth to the celestial body (in seconds) are known.
 * Complete the code to calculate the distance in kilometers and astronomical units (AU).
 *
 * @param speedOfLight The speed of light in kilometers per second.
 * @param time The time it takes for light to travel from Earth to the celestial body in seconds.
 * @return A pair containing the distance in kilometers and astronomical units (AU).
 *
 * The formula to calculate the distance is: distance = speedOfLight * time
 *
 * Note:
 * The astronomical unit (AU) is a unit of length used in astronomy, which equals the mean distance between the Earth and the Sun (about 149.6 million kilometers).
 * 1 astronomical unit (AU) = 149.6 million kilometers
 */
fun calculateDistanceFromEarth(speedOfLight: Float, time: Float): Pair<Float, Float> {

    val distanceKm = speedOfLight * time
    val distanceAu = distanceKm / 149600000
    return Pair(distanceKm, distanceAu)
}
/**
 * An astronomer needs to calculate the distance from Earth to a celestial body.
 * The speed of light (in km/s) and the time it takes for light to travel from Earth to the celestial body (in seconds) are known.
 * Complete the code to calculate the distance in kilometers and astronomical units (AU).
 *
 * @param speedOfLight The speed of light in kilometers per second.
 * @param time The time it takes for light to travel from Earth to the celestial body in seconds.
 * @return A pair containing the distance in kilometers and astronomical units (AU).
 *
 * The formula to calculate the distance is: distance = speedOfLight * time
 *
 * Note:
 * The astronomical unit (AU) is a unit of length used in astronomy, which equals the mean distance between the Earth and the Sun (about 149.6 million kilometers).
 * 1 astronomical unit (AU) = 149.6 million kilometers
 */
fun calculateDistanceFromEarth(speedOfLight: Float, time: Float): Pair<Float, Float> {
/**
 * An astronomer needs to calculate the distance from Earth to a celestial body.
 * The speed of light (in km/s) and the time it takes for light to travel from Earth to the celestial body (in seconds) are known.
 * Complete the code to calculate the distance in kilometers and astronomical units (AU).
 *
 * @param speedOfLight The speed of light in kilometers per second.
 * @param time The time it takes for light to travel from Earth to the celestial body in seconds.
 * @return A pair containing the distance in kilometers and astronomical units (AU).
 *
 * The formula to calculate the distance is: distance = speedOfLight * time
 *
 * Note:
 * The astronomical unit (AU) is a unit of length used in astronomy, which equals the mean distance between the Earth and the Sun (about 149.6 million kilometers).
 * 1 astronomical unit (AU) = 149.6 million kilometers
 */
fun calculateDistanceFromEarth(speedOfLight: Float, time: Float): Pair<Float, Float> {

    val distanceKm = speedOfLight * time
    val distanceAu = distanceKm / 149600000
    return Pair(distanceKm, distanceAu)
}