/**
 * This function takes in two lists and creates a set containing common elements
 * based on certain conditional statements.
 *
 * @param list1 A list containing environmental data
 * @param list2 A list containing other data
 * @return A set containing common elements between list1 and list2, depending on conditions met
 */
fun createSetWithinConditions(list1: List<Int>, list2: List<Int>): Set<Int> {

    // Initialize an empty set
    val commonElements = mutableSetOf<Int>()

    // Iterate through each element in list1
    for (element in list1) {
        // Check if the element is divisible by 2
        if (element % 2 == 0) {
            // Check if the element is greater than 10
            if (element > 10) {
                // Check if the element is less than 100
                if (element < 100) {
                    // Check if the element is present in list2
                    if (element in list2) {
                        // Add element to the commonElements set
                        commonElements.add(element)
                    }
                }
            }
        }
    }
    
    return commonElements
}
/**
 * This function takes in two lists and creates a set containing common elements
 * based on certain conditional statements.
 *
 * @param list1 A list containing environmental data
 * @param list2 A list containing other data
 * @return A set containing common elements between list1 and list2, depending on conditions met
 */
fun createSetWithinConditions(list1: List<Int>, list2: List<Int>): Set<Int> {
/**
 * This function takes in two lists and creates a set containing common elements
 * based on certain conditional statements.
 *
 * @param list1 A list containing environmental data
 * @param list2 A list containing other data
 * @return A set containing common elements between list1 and list2, depending on conditions met
 */
fun createSetWithinConditions(list1: List<Int>, list2: List<Int>): Set<Int> {

    // Initialize an empty set
    val commonElements = mutableSetOf<Int>()

    // Iterate through each element in list1
    for (element in list1) {
        // Check if the element is divisible by 2
        if (element % 2 == 0) {
            // Check if the element is greater than 10
            if (element > 10) {
                // Check if the element is less than 100
                if (element < 100) {
                    // Check if the element is present in list2
                    if (element in list2) {
                        // Add element to the commonElements set
                        commonElements.add(element)
                    }
                }
            }
        }
    }
    
    return commonElements
}