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

Input: Consider Input: ['T', 5369, 1173, 6093, 'n', 4575, 'h', 7975, 2921, 1655, 'r', 4521, 8665, 1933, 4703, 'N', 7921, '6499', '3029', '5963', 'P', '9959', '2345', '1265', '8097', '4181', 'r', 't', 'X', 's', 'l', 'p', 'F', '1107', '8395', 'A', '1351', 'G', 'G', 'G', '3113', 'q', 'W', 'G', 9031, 8561, 6175, 5329, 5317, 'd'], [7417, 'P', 'q', 'n', 7037, '6499', '3029', '5963', 'P', '9959', '2345', '1265', '8097', '4181', 'r', 't', 'X', 's', 'l', 'p', 'F', '1107', '8395', 'A', '1351', 'G', 'G', 'G', '3113', 'q', 'l', 4415, 'A', 'o']

Output: 6499, 3029, 5963, P, 9959, 2345, 1265, 8097, 4181, r, t, X, s, l, p, F, 1107, 8395, A, 1351, G, G, G, 3113, q

Input: Consider Input: ['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]

Output: 5001, 8571, 2343, 9471, P, 6369, 9299

Input: Consider Input: ['M', 'I', 'I', 'J', 'h', 4665, 9295, 407, 't', '1775', 'w', '9371', '727', 'q', '8975', '5', '8891', 'h', 'u', 'y', 3731, 'D', 't', 473, 8849, 4503, 9369, 'X', 6819, 'H'], [5351, 1689, 't', '1775', 'w', '9371', '727', 'q', '8975', '5', '8891', 'h', 'u', 'a', 'L', 5271, 'u', 'k', 'p', 'm', 'U', 'B', 4899, 'B']
Output: t, 1775, w, 9371, 727, q, 8975, 5, 8891, h, u