/**
 * Given a tuple with information about a star, return the star's name and its distance from Earth.
 *
 * @param starData A tuple containing the star's name, distance from Earth, and other information.
 * @return A tuple containing the star's name and distance from Earth.
 *
 * Example:
 * extractData("Polaris", 431.0, "Class A", "North Star") // Returns ("Polaris", 431.0)
 */
fun extractData(starData: Triple<String, Double, String>): Pair<String, Double> {

    // Return the first two elements of the starData tuple
    return Pair(starData.first, starData.second)
}
/**
 * Given a tuple with information about a star, return the star's name and its distance from Earth.
 *
 * @param starData A tuple containing the star's name, distance from Earth, and other information.
 * @return A tuple containing the star's name and distance from Earth.
 *
 * Example:
 * extractData("Polaris", 431.0, "Class A", "North Star") // Returns ("Polaris", 431.0)
 */
fun extractData(starData: Triple<String, Double, String>): Pair<String, Double> {
/**
 * Given a tuple with information about a star, return the star's name and its distance from Earth.
 *
 * @param starData A tuple containing the star's name, distance from Earth, and other information.
 * @return A tuple containing the star's name and distance from Earth.
 *
 * Example:
 * extractData("Polaris", 431.0, "Class A", "North Star") // Returns ("Polaris", 431.0)
 */
fun extractData(starData: Triple<String, Double, String>): Pair<String, Double> {

    // Return the first two elements of the starData tuple
    return Pair(starData.first, starData.second)
}