/**
 * Given two carpenters, this function finds the common materials they both work with.
 *
 * @param carpenter1 A list of materials the first carpenter works with
 * @param carpenter2 A list of materials the second carpenter works with
 * @return A list of materials that are common to both carpenters
 */
fun findCommonMaterials(carpenter1: List<String>, carpenter2: List<String>): List<String> {

    // Find the intersection of the two lists
    val commonMaterials = carpenter1.intersect(carpenter2).toList()
    
    return commonMaterials
}
/**
 * Given two carpenters, this function finds the common materials they both work with.
 *
 * @param carpenter1 A list of materials the first carpenter works with
 * @param carpenter2 A list of materials the second carpenter works with
 * @return A list of materials that are common to both carpenters
 */
fun findCommonMaterials(carpenter1: List<String>, carpenter2: List<String>): List<String> {
/**
 * Given two carpenters, this function finds the common materials they both work with.
 *
 * @param carpenter1 A list of materials the first carpenter works with
 * @param carpenter2 A list of materials the second carpenter works with
 * @return A list of materials that are common to both carpenters
 */
fun findCommonMaterials(carpenter1: List<String>, carpenter2: List<String>): List<String> {

    // Find the intersection of the two lists
    val commonMaterials = carpenter1.intersect(carpenter2).toList()
    
    return commonMaterials
}