Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [7361, 'L', 8189, 1973, 9683, 'o', 'a', 'm', 8959, 6589, 9457, '421', 'T', '5175', 's', 't', 'E', '4769', 'K', '3163', 'v', '6317', 'W', 'r', '899', 'w', 'c', 'j', '9579', '4647', 'V', '4083', '1617', 'M', 'h', 'v', 'f', 7685, 'H'], ['X', 1835, 4243, 'V', 659, 'q', 295, 1797, 679, '421', 'T', '5175', 's', 't', 'E', '4769', 'K', '3163', 'v', '6317', 'W', 'r', '899', 'w', 'c', 'j', '9579', '4647', 'V', '4083', '1617', 'M', 'h', 'v', 'w', 'H', 'D', 5961, 6345, 7299, 'p', 'g', 'n']
Output:
421, T, 5175, s, t, E, 4769, K, 3163, v, 6317, W, r, 899, w, c, j, 9579, 4647, V, 4083, 1617, M, h, v