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: [9881, 2501, 7097, 3329, 1065, 'h', 'J', 1357, 'Y', 'x', 7747, 357, 3529, 6397, 'L', '539', '2309', 'a', 'B', '965', '7339', '5615', 'O', 'b', '9687', '1095', '2253', 'G', 'G', '5381', 'e', '7179', '3215', 'z', '7589', 'V', '6001', '2451', '6691', '2189', 'd', 'o', 'Y', 363, 7935, 'M', 'o', 'k', 'w', 9975, 405, 'a'], ['E', 'g', 2627, 1707, 2107, 8717, 'D', 'e', 'g', 'l', 'N', 'd', '539', '2309', 'a', 'B', '965', '7339', '5615', 'O', 'b', '9687', '1095', '2253', 'G', 'G', '5381', 'e', '7179', '3215', 'z', '7589', 'V', '6001', '2451', '6691', '2189', 'K', 'X', 4927, 'U', 'P', 'r', 'c', 'o', 'm', 7749]
Example Output: 539, 2309, a, B, 965, 7339, 5615, O, b, 9687, 1095, 2253, G, G, 5381, e, 7179, 3215, z, 7589, V, 6001, 2451, 6691, 2189

Example Input: [1095, 7449, 1383, 5485, 3931, 2709, 'D', 'm', 'b', 'h', 3449, 'r', 'c', 3315, 6709, 'J', 8129, 'Q', 5241, 7295, 3037, 8895, 6817, 437, 1307, '7555', 'g', 'A', 'm', 'M', '271', '2913', '9087', 'I', '1815', '6969', '2345', '3313', '2225', '4855', '6287', 'D', '8559', '2701', 'D', '6049', 'O', '1605', '2417', 'w', '409', 'N', 3531, 'S', 7911, 'i', 'g', 'O', 'w', 'f', 6061, 6885, 5763, 1711, 'O', 7383, 'e'], [4845, 9099, 1651, '7555', 'g', 'A', 'm', 'M', '271', '2913', '9087', 'I', '1815', '6969', '2345', '3313', '2225', '4855', '6287', 'D', '8559', '2701', 'D', '6049', 'O', '1605', '2417', 'w', '409', 'R', 8791, 1521, 'p', 8275, 2205, 2743, 8295]
Example Output:
7555, g, A, m, M, 271, 2913, 9087, I, 1815, 6969, 2345, 3313, 2225, 4855, 6287, D, 8559, 2701, D, 6049, O, 1605, 2417, w, 409