/**
 * This function takes in a dictionary of marketing data and a set of sales data.
 * It creates a tuple by iterating through the marketing data and filtering it based on the sales data.
 * The resulting tuple contains only the values that are common in both the marketing data and sales data sets.
 *
 * @param marketingData A dictionary containing marketing data.
 * @param salesData A set containing sales data.
 * @return A tuple containing the common values between marketing data and sales data.
 */
fun createTupleAndIterateSets(marketingData: Map<String, String>, salesData: Set<String>): List<String> {

    val filteredData = mutableListOf<String>()
    for ((key, value) in marketingData) {
        if (value in salesData) {
            filteredData.add(value)
        }
    }
    return filteredData
}
/**
 * This function takes in a dictionary of marketing data and a set of sales data.
 * It creates a tuple by iterating through the marketing data and filtering it based on the sales data.
 * The resulting tuple contains only the values that are common in both the marketing data and sales data sets.
 *
 * @param marketingData A dictionary containing marketing data.
 * @param salesData A set containing sales data.
 * @return A tuple containing the common values between marketing data and sales data.
 */
fun createTupleAndIterateSets(marketingData: Map<String, String>, salesData: Set<String>): List<String> {
/**
 * This function takes in a dictionary of marketing data and a set of sales data.
 * It creates a tuple by iterating through the marketing data and filtering it based on the sales data.
 * The resulting tuple contains only the values that are common in both the marketing data and sales data sets.
 *
 * @param marketingData A dictionary containing marketing data.
 * @param salesData A set containing sales data.
 * @return A tuple containing the common values between marketing data and sales data.
 */
fun createTupleAndIterateSets(marketingData: Map<String, String>, salesData: Set<String>): List<String> {

    val filteredData = mutableListOf<String>()
    for ((key, value) in marketingData) {
        if (value in salesData) {
            filteredData.add(value)
        }
    }
    return filteredData
}