/**
 * This function calculates the maximum budget allocated per room for an interior designer.
 * It takes the total budget and the number of rooms as arguments and returns the maximum budget per room.
 */
fun calculateCost(totalBudget: Double, numRooms: Int): Double {

    var maxBudgetPerRoom = totalBudget

    when (numRooms) {
        in listOf(2, 3, 5, 7, 11, 13, 17, 19, 23, 29) -> maxBudgetPerRoom /= 2
        in listOf(31, 37, 41, 43, 47, 53, 59, 61, 67, 71) -> maxBudgetPerRoom /= 3
        in listOf(73, 79, 83, 89, 97) -> maxBudgetPerRoom /= 4
        else -> maxBudgetPerRoom /= 5
    }

    return maxBudgetPerRoom
}
/**
 * This function calculates the maximum budget allocated per room for an interior designer.
 * It takes the total budget and the number of rooms as arguments and returns the maximum budget per room.
 */
fun calculateCost(totalBudget: Double, numRooms: Int): Double {
/**
 * This function calculates the maximum budget allocated per room for an interior designer.
 * It takes the total budget and the number of rooms as arguments and returns the maximum budget per room.
 */
fun calculateCost(totalBudget: Double, numRooms: Int): Double {

    var maxBudgetPerRoom = totalBudget

    when (numRooms) {
        in listOf(2, 3, 5, 7, 11, 13, 17, 19, 23, 29) -> maxBudgetPerRoom /= 2
        in listOf(31, 37, 41, 43, 47, 53, 59, 61, 67, 71) -> maxBudgetPerRoom /= 3
        in listOf(73, 79, 83, 89, 97) -> maxBudgetPerRoom /= 4
        else -> maxBudgetPerRoom /= 5
    }

    return maxBudgetPerRoom
}