/**
 * Chef! I need your expertise in making sure that two ingredients are measured in equal quantities.
 * You must write the code in this function using the '==' operator to compare the amounts of the ingredients.
 */
fun equal(ingredient1: Double, ingredient2: Double): Pair<Double, Double> {

    // Check if the ingredients are equal in quantity using the '==' operator
    return if (ingredient1 == ingredient2) {
        Pair(ingredient1, ingredient2)
    } else {
        // If the ingredients are not equal, adjust the quantities to be equal
        val ingredient1Equal = ingredient1 * (ingredient2 / ingredient1)
        val ingredient2Equal = ingredient2 * (ingredient1 / ingredient2)
        Pair(ingredient1Equal, ingredient2Equal)
    }
}
/**
 * Chef! I need your expertise in making sure that two ingredients are measured in equal quantities.
 * You must write the code in this function using the '==' operator to compare the amounts of the ingredients.
 */
fun equal(ingredient1: Double, ingredient2: Double): Pair<Double, Double> {
/**
 * Chef! I need your expertise in making sure that two ingredients are measured in equal quantities.
 * You must write the code in this function using the '==' operator to compare the amounts of the ingredients.
 */
fun equal(ingredient1: Double, ingredient2: Double): Pair<Double, Double> {

    // Check if the ingredients are equal in quantity using the '==' operator
    return if (ingredient1 == ingredient2) {
        Pair(ingredient1, ingredient2)
    } else {
        // If the ingredients are not equal, adjust the quantities to be equal
        val ingredient1Equal = ingredient1 * (ingredient2 / ingredient1)
        val ingredient2Equal = ingredient2 * (ingredient1 / ingredient2)
        Pair(ingredient1Equal, ingredient2Equal)
    }
}