In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Example Input: ['U', 6489, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'I', 'B', 'R', 'N', 9533, 'd'], ['U', 4287, 'f', 'R', 1407, 3893, 6739, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'Z', 2981, 'i', 'a', 'k', 5909, 'S', 9997]
Example Output: o, e, Z, G, 8175, r, 1915, 8587, 8845

Example Input: ['w', 3897, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'P', 'C', 'z', 5141, 1751, 6731, 'r'], ['B', 8071, 703, 'G', 885, 'Z', 2391, 1749, 4177, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'D', 8751, 'y', 2941]
Example Output: U, a, 455, 6499, 8975, 9003, O, j, T

Example Input: [8621, 8691, 'U', 'd', 'W', 4427, 'g', '9913', 'X', '7823', 'Q', '7251', 'm', '5461', 'i', 'E', 8345, 'U', 'R', 'r'], ['G', 4131, '9913', 'X', '7823', 'Q', '7251', 'm', '5461', 'i', 'G', 2367, 'B', 'g', 'p', 'F', 1241, 'v']
Example Output:
9913, X, 7823, Q, 7251, m, 5461, i