/**
 * Given the dimensions of a room and the area covered by a single material,
 * calculate the number of materials needed to cover the entire room.
 *
 * @param roomDimensions Tuple containing the length, width, and height of the room in meters.
 * @param materialArea The area covered by a single material in square meters.
 * @return The total number of materials required to cover the entire room.
 *
 * Example:
 * calculateRoomMaterials(Triple(5, 5, 3), 2.5) -> 24
 */
fun calculateRoomMaterials(roomDimensions: Triple<Int, Int, Int>, materialArea: Double): Int {

    val (length, width, height) = roomDimensions
    val totalArea = length * width * height
    val materialsNeeded = totalArea / materialArea

    return materialsNeeded.toInt()
}
/**
 * Given the dimensions of a room and the area covered by a single material,
 * calculate the number of materials needed to cover the entire room.
 *
 * @param roomDimensions Tuple containing the length, width, and height of the room in meters.
 * @param materialArea The area covered by a single material in square meters.
 * @return The total number of materials required to cover the entire room.
 *
 * Example:
 * calculateRoomMaterials(Triple(5, 5, 3), 2.5) -> 24
 */
fun calculateRoomMaterials(roomDimensions: Triple<Int, Int, Int>, materialArea: Double): Int {
/**
 * Given the dimensions of a room and the area covered by a single material,
 * calculate the number of materials needed to cover the entire room.
 *
 * @param roomDimensions Tuple containing the length, width, and height of the room in meters.
 * @param materialArea The area covered by a single material in square meters.
 * @return The total number of materials required to cover the entire room.
 *
 * Example:
 * calculateRoomMaterials(Triple(5, 5, 3), 2.5) -> 24
 */
fun calculateRoomMaterials(roomDimensions: Triple<Int, Int, Int>, materialArea: Double): Int {

    val (length, width, height) = roomDimensions
    val totalArea = length * width * height
    val materialsNeeded = totalArea / materialArea

    return materialsNeeded.toInt()
}