/**
 * This function takes in a list of all known volcanoes and a list of active volcanoes.
 * It returns a new list containing only the active volcanoes that are also present in the known volcanoes list.
 */
fun findVolcanoes(volcanoList: List<String>, activeVolcanoes: List<String>): List<String> {

    val activeKnownVolcanoes = mutableListOf<String>()

    for (volcano in activeVolcanoes) {
        if (volcano in volcanoList) {
            activeKnownVolcanoes.add(volcano)
        }
    }

    return activeKnownVolcanoes
}
/**
 * This function takes in a list of all known volcanoes and a list of active volcanoes.
 * It returns a new list containing only the active volcanoes that are also present in the known volcanoes list.
 */
fun findVolcanoes(volcanoList: List<String>, activeVolcanoes: List<String>): List<String> {
/**
 * This function takes in a list of all known volcanoes and a list of active volcanoes.
 * It returns a new list containing only the active volcanoes that are also present in the known volcanoes list.
 */
fun findVolcanoes(volcanoList: List<String>, activeVolcanoes: List<String>): List<String> {

    val activeKnownVolcanoes = mutableListOf<String>()

    for (volcano in activeVolcanoes) {
        if (volcano in volcanoList) {
            activeKnownVolcanoes.add(volcano)
        }
    }

    return activeKnownVolcanoes
}