/**
 * This function calculates the required amount of building materials based on the given dimensions of a room.
 * The materials include bricks, cement bags, and paint.
 * It assumes that 1 brick covers an area of 0.5 square meters, 1 cement bag covers an area of 1 square meter,
 * and 1 liter of paint covers an area of 5 square meters.
 *
 * @param length The length of the room in meters.
 * @param width The width of the room in meters.
 * @param height The height of the room in meters.
 * @return A triple containing the required amount of bricks, cement bags, and paint in respective order.
 */
fun calculateBuildingMaterials(length: Double, width: Double, height: Double): Triple<Double, Double, Double> {

    // Calculate the total area of the room
    val totalArea = length * width * height

    // Calculate the required amount of each material
    val bricks = totalArea / 0.5
    val cementBags = totalArea / 1
    val paintLiters = totalArea / 5

    return Triple(bricks, cementBags, paintLiters)
}

// Use the calculateBuildingMaterials function to check if the given room dimensions
/**
 * This function calculates the required amount of building materials based on the given dimensions of a room.
 * The materials include bricks, cement bags, and paint.
 * It assumes that 1 brick covers an area of 0.5 square meters, 1 cement bag covers an area of 1 square meter,
 * and 1 liter of paint covers an area of 5 square meters.
 *
 * @param length The length of the room in meters.
 * @param width The width of the room in meters.
 * @param height The height of the room in meters.
 * @return A triple containing the required amount of bricks, cement bags, and paint in respective order.
 */
fun calculateBuildingMaterials(length: Double, width: Double, height: Double): Triple<Double, Double, Double> {
/**
 * This function calculates the required amount of building materials based on the given dimensions of a room.
 * The materials include bricks, cement bags, and paint.
 * It assumes that 1 brick covers an area of 0.5 square meters, 1 cement bag covers an area of 1 square meter,
 * and 1 liter of paint covers an area of 5 square meters.
 *
 * @param length The length of the room in meters.
 * @param width The width of the room in meters.
 * @param height The height of the room in meters.
 * @return A triple containing the required amount of bricks, cement bags, and paint in respective order.
 */
fun calculateBuildingMaterials(length: Double, width: Double, height: Double): Triple<Double, Double, Double> {

    // Calculate the total area of the room
    val totalArea = length * width * height

    // Calculate the required amount of each material
    val bricks = totalArea / 0.5
    val cementBags = totalArea / 1
    val paintLiters = totalArea / 5

    return Triple(bricks, cementBags, paintLiters)
}

// Use the calculateBuildingMaterials function to check if the given room dimensions