/**
 * This function takes two lists of skills as inputs and returns a list
 * containing all possible combinations of skills a carpenter can have by
 * merging the given skills.
 *
 * @param skills1 A list of skills (e.g. woodworking, carpentry)
 * @param skills2 A list of skills (e.g. carving, painting)
 * @return A list of pairs representing all possible combinations of skills
 *
 * Example:
 * carpenterSkills(listOf("woodworking", "carpentry"), listOf("carving", "painting"))
 * Output: [('woodworking', 'carving'), ('woodworking', 'painting'),
 * ('carpentry', 'carving'), ('carpentry', 'painting')]
 */
fun carpenterSkills(skills1: List<String>, skills2: List<String>): List<Pair<String, String>> {

    val combinations = mutableListOf<Pair<String, String>>()

    for (skill1 in skills1) {
        for (skill2 in skills2) {
            val combination = Pair(skill1, skill2)
            combinations.add(combination)
        }
    }

    return combinations
}
/**
 * This function takes two lists of skills as inputs and returns a list
 * containing all possible combinations of skills a carpenter can have by
 * merging the given skills.
 *
 * @param skills1 A list of skills (e.g. woodworking, carpentry)
 * @param skills2 A list of skills (e.g. carving, painting)
 * @return A list of pairs representing all possible combinations of skills
 *
 * Example:
 * carpenterSkills(listOf("woodworking", "carpentry"), listOf("carving", "painting"))
 * Output: [('woodworking', 'carving'), ('woodworking', 'painting'),
 * ('carpentry', 'carving'), ('carpentry', 'painting')]
 */
fun carpenterSkills(skills1: List<String>, skills2: List<String>): List<Pair<String, String>> {
/**
 * This function takes two lists of skills as inputs and returns a list
 * containing all possible combinations of skills a carpenter can have by
 * merging the given skills.
 *
 * @param skills1 A list of skills (e.g. woodworking, carpentry)
 * @param skills2 A list of skills (e.g. carving, painting)
 * @return A list of pairs representing all possible combinations of skills
 *
 * Example:
 * carpenterSkills(listOf("woodworking", "carpentry"), listOf("carving", "painting"))
 * Output: [('woodworking', 'carving'), ('woodworking', 'painting'),
 * ('carpentry', 'carving'), ('carpentry', 'painting')]
 */
fun carpenterSkills(skills1: List<String>, skills2: List<String>): List<Pair<String, String>> {

    val combinations = mutableListOf<Pair<String, String>>()

    for (skill1 in skills1) {
        for (skill2 in skills2) {
            val combination = Pair(skill1, skill2)
            combinations.add(combination)
        }
    }

    return combinations
}