/**
 * This exercise asks the police officer to find the vehicles that match the descriptions provided by the people.
 * To solve the exercise, the police officer needs to iterate over each person's description and compare it with each car's attributes.
 */
fun findMatchingVehicles(cars: List<Map<String, String>>, people: List<Map<String, String>>): List<Map<String, String>> {

    val matchingVehicles = mutableListOf<Map<String, String>>()

    for (person in people) {
        for (car in cars) {
            if (car["color"] == person["color"] && car["brand"] == person["brand"] && car["plate_number"] == person["plate_number"]) {
                matchingVehicles.add(car)
            }
        }
    }

    return matchingVehicles
}
/**
 * This exercise asks the police officer to find the vehicles that match the descriptions provided by the people.
 * To solve the exercise, the police officer needs to iterate over each person's description and compare it with each car's attributes.
 */
fun findMatchingVehicles(cars: List<Map<String, String>>, people: List<Map<String, String>>): List<Map<String, String>> {
/**
 * This exercise asks the police officer to find the vehicles that match the descriptions provided by the people.
 * To solve the exercise, the police officer needs to iterate over each person's description and compare it with each car's attributes.
 */
fun findMatchingVehicles(cars: List<Map<String, String>>, people: List<Map<String, String>>): List<Map<String, String>> {

    val matchingVehicles = mutableListOf<Map<String, String>>()

    for (person in people) {
        for (car in cars) {
            if (car["color"] == person["color"] && car["brand"] == person["brand"] && car["plate_number"] == person["plate_number"]) {
                matchingVehicles.add(car)
            }
        }
    }

    return matchingVehicles
}