/**
 * Calculate the total fee for a series of photos based on the sizes and their respective prices.
 *
 * @param photoSizes A map containing the sizes of the photos as keys and the number of photos of each size as values.
 * @param photoPrices A map containing the prices per size of the photos.
 * @return The total fee for the photos.
 *
 * Example:
 * calculatePhotoFees(mapOf("4x6" to 5, "5x7" to 3, "8x10" to 2), mapOf("4x6" to 1.5, "5x7" to 2.0, "8x10" to 3.0))
 * returns 20.5
 */
fun calculatePhotoFees(photoSizes: Map<String, Int>, photoPrices: Map<String, Double>): Double {

    var totalFee = 0.0

    for ((size, quantity) in photoSizes) {
        if (size in photoPrices) {
            totalFee += photoPrices[size]!! * quantity
        }
    }

    return totalFee
}
/**
 * Calculate the total fee for a series of photos based on the sizes and their respective prices.
 *
 * @param photoSizes A map containing the sizes of the photos as keys and the number of photos of each size as values.
 * @param photoPrices A map containing the prices per size of the photos.
 * @return The total fee for the photos.
 *
 * Example:
 * calculatePhotoFees(mapOf("4x6" to 5, "5x7" to 3, "8x10" to 2), mapOf("4x6" to 1.5, "5x7" to 2.0, "8x10" to 3.0))
 * returns 20.5
 */
fun calculatePhotoFees(photoSizes: Map<String, Int>, photoPrices: Map<String, Double>): Double {
/**
 * Calculate the total fee for a series of photos based on the sizes and their respective prices.
 *
 * @param photoSizes A map containing the sizes of the photos as keys and the number of photos of each size as values.
 * @param photoPrices A map containing the prices per size of the photos.
 * @return The total fee for the photos.
 *
 * Example:
 * calculatePhotoFees(mapOf("4x6" to 5, "5x7" to 3, "8x10" to 2), mapOf("4x6" to 1.5, "5x7" to 2.0, "8x10" to 3.0))
 * returns 20.5
 */
fun calculatePhotoFees(photoSizes: Map<String, Int>, photoPrices: Map<String, Double>): Double {

    var totalFee = 0.0

    for ((size, quantity) in photoSizes) {
        if (size in photoPrices) {
            totalFee += photoPrices[size]!! * quantity
        }
    }

    return totalFee
}