/**
 * Find the common elements in the performances of two athletes.
 *
 * @param athlete1 List of performances of the first athlete.
 * @param athlete2 List of performances of the second athlete.
 * @return Set containing the common performances of both athletes.
 */
fun commonElements(athlete1: List<Any>, athlete2: List<Any>): Set<Any> {

    // Find the intersection of the two sets using the intersect function
    val commonPerformances = athlete1.toSet().intersect(athlete2.toSet())
    
    return commonPerformances
}
/**
 * Find the common elements in the performances of two athletes.
 *
 * @param athlete1 List of performances of the first athlete.
 * @param athlete2 List of performances of the second athlete.
 * @return Set containing the common performances of both athletes.
 */
fun commonElements(athlete1: List<Any>, athlete2: List<Any>): Set<Any> {
/**
 * Find the common elements in the performances of two athletes.
 *
 * @param athlete1 List of performances of the first athlete.
 * @param athlete2 List of performances of the second athlete.
 * @return Set containing the common performances of both athletes.
 */
fun commonElements(athlete1: List<Any>, athlete2: List<Any>): Set<Any> {

    // Find the intersection of the two sets using the intersect function
    val commonPerformances = athlete1.toSet().intersect(athlete2.toSet())
    
    return commonPerformances
}