/**
 * Calculate the population density at the intersection of two areas
 *
 * @param population dictionary containing population information for different areas
 * @param area dictionary containing area information for different areas
 * @return dictionary containing calculated population density for each area
 */
fun intersectionPopDensity(population: Map<String, Int>, area: Map<String, Int>): Map<String, Double> {

    val populationDensity = mutableMapOf<String, Double>()

    for ((key, value) in population) {
        if (key in area) {
            populationDensity[key] = value.toDouble() / area[key]!!
        }
    }

    return populationDensity
}

// Example usage
/**
 * Calculate the population density at the intersection of two areas
 *
 * @param population dictionary containing population information for different areas
 * @param area dictionary containing area information for different areas
 * @return dictionary containing calculated population density for each area
 */
fun intersectionPopDensity(population: Map<String, Int>, area: Map<String, Int>): Map<String, Double> {
/**
 * Calculate the population density at the intersection of two areas
 *
 * @param population dictionary containing population information for different areas
 * @param area dictionary containing area information for different areas
 * @return dictionary containing calculated population density for each area
 */
fun intersectionPopDensity(population: Map<String, Int>, area: Map<String, Int>): Map<String, Double> {

    val populationDensity = mutableMapOf<String, Double>()

    for ((key, value) in population) {
        if (key in area) {
            populationDensity[key] = value.toDouble() / area[key]!!
        }
    }

    return populationDensity
}

// Example usage