/**
 * Given two musicians' ages, determine the age difference of the younger musician in terms of number of years and months.
 * The age difference should be calculated by performing left and right shift operations.
 *
 * @param musicianAge1 Age of the first musician
 * @param musicianAge2 Age of the second musician
 * @return A Pair containing the age difference of the younger musician in years and months respectively.
 */
fun compareMusicianAge(musicianAge1: Int, musicianAge2: Int): Pair<Int, Int> {

    // Check if musicianAge2 is older than musicianAge1
    var (age1, age2) = if (musicianAge2 > musicianAge1) Pair(musicianAge2, musicianAge1) else Pair(musicianAge1, musicianAge2)

    // Calculate age difference
    val ageDifferenceYears = (age1 - age2) shr 1
    val ageDifferenceMonths = (age1 - age2) shl 1

    return Pair(ageDifferenceYears, ageDifferenceMonths)
}
/**
 * Given two musicians' ages, determine the age difference of the younger musician in terms of number of years and months.
 * The age difference should be calculated by performing left and right shift operations.
 *
 * @param musicianAge1 Age of the first musician
 * @param musicianAge2 Age of the second musician
 * @return A Pair containing the age difference of the younger musician in years and months respectively.
 */
fun compareMusicianAge(musicianAge1: Int, musicianAge2: Int): Pair<Int, Int> {
/**
 * Given two musicians' ages, determine the age difference of the younger musician in terms of number of years and months.
 * The age difference should be calculated by performing left and right shift operations.
 *
 * @param musicianAge1 Age of the first musician
 * @param musicianAge2 Age of the second musician
 * @return A Pair containing the age difference of the younger musician in years and months respectively.
 */
fun compareMusicianAge(musicianAge1: Int, musicianAge2: Int): Pair<Int, Int> {

    // Check if musicianAge2 is older than musicianAge1
    var (age1, age2) = if (musicianAge2 > musicianAge1) Pair(musicianAge2, musicianAge1) else Pair(musicianAge1, musicianAge2)

    // Calculate age difference
    val ageDifferenceYears = (age1 - age2) shr 1
    val ageDifferenceMonths = (age1 - age2) shl 1

    return Pair(ageDifferenceYears, ageDifferenceMonths)
}