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

Example Input: ['Y', 'l', 6297, 9773, '6077', 'B', 'x', 'C', '7371', '5635', '9551', '8421', '6587', 'Y', 'L', 'i', '1275', 'J', 's', 'C', '10005', 'x', '9473', 'I', 'T', 'O', 2961, 6077, 'L', 5737, 99, 2363, 'A', 'I', 'E', 5649, 4127, 'm', 3085], ['g', 8141, 'Y', 7433, 1501, 2423, 'P', 8359, 8589, 7265, 265, 'N', 'J', 8251, 'f', '6077', 'B', 'x', 'C', '7371', '5635', '9551', '8421', '6587', 'Y', 'L', 'i', '1275', 'J', 's', 'C', '10005', 'x', '9473', 'I', 'K', 9051, 'Q', 'M']
Example Output: 6077, B, x, C, 7371, 5635, 9551, 8421, 6587, Y, L, i, 1275, J, s, C, 10005, x, 9473, I

Example Input: [4839, 2307, '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'J', 'h', 'k', 'P'], [2615, 't', 5171, 'V', 'q', '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'p', 5261, 3251]
Example Output: 5609, V, s, 7059, N, 3761, i, 161, 1987, N

Example Input: ['x', 'X', 5997, 8825, 'f', 'e', 'A', '6331', '2269', '2861', '1575', '3087', '2783', 'b', 'E', '7337', 'H', 'h', 'J', 4703, 'O', 'I', 2471, 'N', 'b'], ['r', 405, 1135, 3279, 3359, 3157, 6273, '6331', '2269', '2861', '1575', '3087', '2783', 'b', 'E', '7337', 'H', 'o', 'T', 3359, 'P', 5567, 7903, 'h', 7709]
Example Output:
6331, 2269, 2861, 1575, 3087, 2783, b, E, 7337, H