/**
 * This function determines the appropriate tool for a carpenter based on the dimensions and material type
 */
fun determineTool(length: Int, width: Int, materialType: String): String {

    var tool = "unknown"

    if (length > 0 && width > 0) {
        // Determine tool based on material type
        tool = if (materialType == "wood") "saw" else if (materialType == "metal") "hammer" else "unknown"

        // Check additional conditions for saw
        tool = if (tool == "unknown" || (tool == "saw" && length > 10 && width > 10)) tool else "unknown"
    }

    return tool
}
/**
 * This function determines the appropriate tool for a carpenter based on the dimensions and material type
 */
fun determineTool(length: Int, width: Int, materialType: String): String {
/**
 * This function determines the appropriate tool for a carpenter based on the dimensions and material type
 */
fun determineTool(length: Int, width: Int, materialType: String): String {

    var tool = "unknown"

    if (length > 0 && width > 0) {
        // Determine tool based on material type
        tool = if (materialType == "wood") "saw" else if (materialType == "metal") "hammer" else "unknown"

        // Check additional conditions for saw
        tool = if (tool == "unknown" || (tool == "saw" && length > 10 && width > 10)) tool else "unknown"
    }

    return tool
}