/**
 * Given a list of animals and a list of colors, this function counts the number of animals that have both the given animal
 * type and color, and returns the count.
 *
 * @param animals List of animals
 * @param colors List of colors
 * @return Count of animals that have both given animal type and color
 */
fun countAnimalColors(animals: List<String>, colors: List<String>): Int {

    var count = 0
    for (animal in animals) {
        for (color in colors) {
            if (animal == "dog" && color == "brown") {
                count++
            }
        }
    }
    return count
}
/**
 * Given a list of animals and a list of colors, this function counts the number of animals that have both the given animal
 * type and color, and returns the count.
 *
 * @param animals List of animals
 * @param colors List of colors
 * @return Count of animals that have both given animal type and color
 */
fun countAnimalColors(animals: List<String>, colors: List<String>): Int {
/**
 * Given a list of animals and a list of colors, this function counts the number of animals that have both the given animal
 * type and color, and returns the count.
 *
 * @param animals List of animals
 * @param colors List of colors
 * @return Count of animals that have both given animal type and color
 */
fun countAnimalColors(animals: List<String>, colors: List<String>): Int {

    var count = 0
    for (animal in animals) {
        for (color in colors) {
            if (animal == "dog" && color == "brown") {
                count++
            }
        }
    }
    return count
}