/**
 * This function determines the common tools between two carpenter's toolboxes.
 *
 * @param toolbox1 List of tools in the first toolbox.
 * @param toolbox2 List of tools in the second toolbox.
 * @return List of common tools that both toolboxes have, or ["No common tools found"] if none.
 */
fun carpenterToolIntersection(toolbox1: List<String>, toolbox2: List<String>): List<String> {

    val commonTools = getCommonTools(toolbox1, toolbox2)
    return if (commonTools.isNotEmpty()) commonTools else listOf("No common tools found")
}

fun getCommonTools(toolbox1: List<String>, toolbox2: List<String>): List<String> {
    return toolbox1.intersect(toolbox2).toList()
}
/**
 * This function determines the common tools between two carpenter's toolboxes.
 *
 * @param toolbox1 List of tools in the first toolbox.
 * @param toolbox2 List of tools in the second toolbox.
 * @return List of common tools that both toolboxes have, or ["No common tools found"] if none.
 */
fun carpenterToolIntersection(toolbox1: List<String>, toolbox2: List<String>): List<String> {
/**
 * This function determines the common tools between two carpenter's toolboxes.
 *
 * @param toolbox1 List of tools in the first toolbox.
 * @param toolbox2 List of tools in the second toolbox.
 * @return List of common tools that both toolboxes have, or ["No common tools found"] if none.
 */
fun carpenterToolIntersection(toolbox1: List<String>, toolbox2: List<String>): List<String> {

    val commonTools = getCommonTools(toolbox1, toolbox2)
    return if (commonTools.isNotEmpty()) commonTools else listOf("No common tools found")
}

fun getCommonTools(toolbox1: List<String>, toolbox2: List<String>): List<String> {
    return toolbox1.intersect(toolbox2).toList()
}