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

Ex Input:
['p', 4329, 'S', 'D', 9241, 759, 2991, 'F', 3189, 7335, 9261, 'B', 6559, 9299, 7551, 'w', '1413', '7507', 'P', 'd', '8315', 'e', 'b', 's', '7811', 'Q', 'S', 'B', '7459', 'm', 'X', '5533', 'f', 'F', '9347', 'Q', 'w', 'o', '6161', 'C', 'q', 4811, 'a', 7535, 'y', 2697, 9437, 'P', 'V', 9525, 3879, 5751, 1229, 'i', 7163, 'v', 8903, 'F', 6205, 6447, 9677, 5529, 2883, 'G'], [4501, 'L', 'j', 'Y', 2979, 8761, 3813, 7945, 'r', 'X', 327, 'f', 'S', 'c', 6981, '1413', '7507', 'P', 'd', '8315', 'e', 'b', 's', '7811', 'Q', 'S', 'B', '7459', 'm', 'X', '5533', 'f', 'F', '9347', 'Q', 'w', 'o', '6161', 'C', 'g', 5615, 'n', 'e', 2989, 'T', 'P', 'z', 'R', 'E']

Ex Output:
1413, 7507, P, d, 8315, e, b, s, 7811, Q, S, B, 7459, m, X, 5533, f, F, 9347, Q, w, o, 6161, C


Ex Input:
['i', 2711, 6903, 1929, 2863, 'b', 5091, 'C', 'g', 'O', '3689', 'B', '6851', '605', '811', '8847', 'a', '3649', '5787', 'B', '6611', 'S', 'M', 5859, 'C', 7687, 'N', 1227, 5881, 8139, 'L', 'u', 1299], [4083, 2455, 'q', 'L', 3689, 'l', 'd', 9587, 'I', 'N', 'O', '3689', 'B', '6851', '605', '811', '8847', 'a', '3649', '5787', 'B', '6611', 'S', 'V', 7521, 'F', 3951, 'm', 'E']

Ex Output:
O, 3689, B, 6851, 605, 811, 8847, a, 3649, 5787, B, 6611, S


Ex Input:
['f', 4019, 2975, 5771, 3159, 'w', 'Z', 'l', 5339, 661, 4577, 6205, 9475, 'g', 'M', 995, 'O', 'R', '5539', '2939', '9485', 'h', '4617', 'S', 'h', 'q', 'r', 'E', '9317', 'F', 'u', 'Z', 'O', 'O', '2531', 'H', 'F', '5229', '381', '2845', '5471', 'T', 'e', 'G', 'N', 9737, 2053, 1547, 'K', 5549, 'J', 6025, 'g'], ['u', 5279, 6197, 4949, 6115, 4871, 'S', 8321, 8993, 'N', 9303, 3269, 2697, 9789, 'g', 9245, 'J', 'm', 777, 2067, 1343, 7957, '5539', '2939', '9485', 'h', '4617', 'S', 'h', 'q', 'r', 'E', '9317', 'F', 'u', 'Z', 'O', 'O', '2531', 'H', 'F', '5229', '381', '2845', '5471', 'T', 'K', 2417, 3433, 'R', 2793, 2329, 9151, 3063]

Ex Output:

5539, 2939, 9485, h, 4617, S, h, q, r, E, 9317, F, u, Z, O, O, 2531, H, F, 5229, 381, 2845, 5471, T