/**
 * This function finds the intersection of two lists of social worker data.
 *
 * @param data_a The first list containing social worker data.
 * @param data_b The second list containing social worker data.
 * @return A list of social worker data that exist in both input lists.
 */
fun intersectSocialWorker(data_a: List<Any>, data_b: List<Any>): List<Any> {

    val intersectedData = mutableListOf<Any>()

    for (worker_a in data_a) {
        for (worker_b in data_b) {
            if (worker_a !== worker_b) {
                continue  // Skip iteration if workers are not the same
            }
            intersectedData.add(worker_a)
        }
    }

    return intersectedData
}
/**
 * This function finds the intersection of two lists of social worker data.
 *
 * @param data_a The first list containing social worker data.
 * @param data_b The second list containing social worker data.
 * @return A list of social worker data that exist in both input lists.
 */
fun intersectSocialWorker(data_a: List<Any>, data_b: List<Any>): List<Any> {
/**
 * This function finds the intersection of two lists of social worker data.
 *
 * @param data_a The first list containing social worker data.
 * @param data_b The second list containing social worker data.
 * @return A list of social worker data that exist in both input lists.
 */
fun intersectSocialWorker(data_a: List<Any>, data_b: List<Any>): List<Any> {

    val intersectedData = mutableListOf<Any>()

    for (worker_a in data_a) {
        for (worker_b in data_b) {
            if (worker_a !== worker_b) {
                continue  // Skip iteration if workers are not the same
            }
            intersectedData.add(worker_a)
        }
    }

    return intersectedData
}