/**
 * Given two toolboxes, returns the common tools that both toolboxes have.
 *
 * @param toolbox1 List of tools in the first toolbox.
 * @param toolbox2 List of tools in the second toolbox.
 * @return Common tools that both toolboxes have.
 */
fun getCommonTools(toolbox1: List<String>, toolbox2: List<String>): List<String> {

    val commonTools = mutableListOf<String>()

    for (tool in toolbox1) {
        if (tool !in commonTools && tool !in toolbox2) {
            commonTools.add(tool)
        }
    }

    for (tool in toolbox2) {
        if (tool !in commonTools && tool !in toolbox1) {
            commonTools.add(tool)
        }
    }

    return commonTools
}
/**
 * Given two toolboxes, returns the common tools that both toolboxes have.
 *
 * @param toolbox1 List of tools in the first toolbox.
 * @param toolbox2 List of tools in the second toolbox.
 * @return Common tools that both toolboxes have.
 */
fun getCommonTools(toolbox1: List<String>, toolbox2: List<String>): List<String> {
/**
 * Given two toolboxes, returns the common tools that both toolboxes have.
 *
 * @param toolbox1 List of tools in the first toolbox.
 * @param toolbox2 List of tools in the second toolbox.
 * @return Common tools that both toolboxes have.
 */
fun getCommonTools(toolbox1: List<String>, toolbox2: List<String>): List<String> {

    val commonTools = mutableListOf<String>()

    for (tool in toolbox1) {
        if (tool !in commonTools && tool !in toolbox2) {
            commonTools.add(tool)
        }
    }

    for (tool in toolbox2) {
        if (tool !in commonTools && tool !in toolbox1) {
            commonTools.add(tool)
        }
    }

    return commonTools
}