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

Input: Consider Input: ['P', 'E', 'w', 4729, 8995, 'z', 3939, '9711', '4699', 'c', '351', '7279', 'A', '719', 'j', '9659', '8455', '6859', 'E', '903', '1827', 'M', '3035', 'N', '2573', '4995', 'U', '8289', 'k', 'b', 'U', '1961', 'v', 1077, 153, 8063, 'h', 'k'], ['A', 2845, '9711', '4699', 'c', '351', '7279', 'A', '719', 'j', '9659', '8455', '6859', 'E', '903', '1827', 'M', '3035', 'N', '2573', '4995', 'U', '8289', 'k', 'b', 'U', '1961', 'h', 9115, 'v', 275, 'C', 7405, 4211, 'X', 'O', 'e', 'n', 2507, 875, 'o', 6189, 'g', 'k', 3781, 1027, 807, 'g', 7213]

Output: 9711, 4699, c, 351, 7279, A, 719, j, 9659, 8455, 6859, E, 903, 1827, M, 3035, N, 2573, 4995, U, 8289, k, b, U, 1961

Input: Consider Input: [9537, 9603, 'U', '4157', 'M', 'k', 'w', 9373], [3355, 4417, 'U', '4157', 'M', 'C', 'k']

Output: U, 4157, M

Input: Consider Input: [7747, 4219, 'r', '10025', 'f', 'H', '3851', '1051', '9789', 'v', '4581', 'F', 'U', 'b', 3337, 7787, 'Q', 5705, 'G', 'N', 'D'], [1093, 4853, '10025', 'f', 'H', '3851', '1051', '9789', 'v', '4581', 'F', 'U', 'q', 'M', 4821, 7751, 'Z', 9141, 'x', 7009]
Output: 10025, f, H, 3851, 1051, 9789, v, 4581, F, U