Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [7539, 'R', 7927, 967, 'Y', 'W', 3683, 'H', 2255, 937, 8751, 'i', 'D', 'M', 'N', '3015', '4817', 'K', '2359', '6745', 'J', '617', '1115', '9613', 'h', 'I', 'A', 'D', '4187', '9709', 'm', 845, 9959, 'S', 'y', 4097, 'M', 8741, 1079, 37, 'E', 9029, 235, 5085], ['c', 'Q', '3015', '4817', 'K', '2359', '6745', 'J', '617', '1115', '9613', 'h', 'I', 'A', 'D', '4187', '9709', 'C', 193, 4393, 'H', 6527, 5705, 'e', 'S', 'p', 'r', 3021, 'B', 'z', 'I']
Output:
3015, 4817, K, 2359, 6745, J, 617, 1115, 9613, h, I, A, D, 4187, 9709