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

Input: Consider Input: ['c', 'G', 8225, 6329, '6291', '5279', 'n', 'A', 'J', 'n', 5221, 'r', 't'], ['k', 'M', 'Z', 'B', 4003, '6291', '5279', 'n', 'A', 'J', 'g', 'm']

Output: 6291, 5279, n, A, J


Input: Consider Input: ['h', 'L', 2481, 8463, 1309, '7587', '521', 'a', '1617', '5245', '5629', '9977', 'o', 'I', 4133, 't', 'i'], ['P', 5497, '7587', '521', 'a', '1617', '5245', '5629', '9977', 'I', 2251, 'p', 's', 'n', 'k', 8259]

Output: 7587, 521, a, 1617, 5245, 5629, 9977


Input: Consider Input: [9021, 5363, 8883, 7493, 'd', 'K', 'J', 3443, 't', 'r', 'g', '703', 'n', 'r', 'H', 'd', '251', '6969', '267', '5969', '9053', '6587', '8697', 'k', '1547', '8145', '5159', '9029', 'B', '2609', 'C', 'Y', 'n', 2059, 3813, 3931, 9193, 'm', 3829, 5403, 'y', 8299, 6131], ['V', 1367, 1983, 'x', 'e', 't', 'r', 'g', '703', 'n', 'r', 'H', 'd', '251', '6969', '267', '5969', '9053', '6587', '8697', 'k', '1547', '8145', '5159', '9029', 'B', '2609', 'C', 'H', 'Q', 1551, 4819, 'b', 'K', 5049, 'S', 7059, 'w', 2637, 2113, 'D', 'D']


Output: t, r, g, 703, n, r, H, d, 251, 6969, 267, 5969, 9053, 6587, 8697, k, 1547, 8145, 5159, 9029, B, 2609, C