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

Example Input: ['N', 7229, '4831', 'P', 'E', 7925], [3857, 'C', '4831', 'P', 'g', 'p']
Example Output: 4831, P

Example Input: ['h', 'l', 2659, 5135, 4075, 'B', 'Z', 7075, '8385', 'I', '5937', 'N', 'H', '7143', '9643', '7171', 'z', 'c', 'A', '2163', 'm', 5383, 'S', 8583, 3589, 'S'], [5819, 317, 1243, 6949, 3195, 'A', 'p', 'F', 'Z', 4825, 'U', '8385', 'I', '5937', 'N', 'H', '7143', '9643', '7171', 'z', 'c', 'A', '2163', 'Y', 'r', 7985, 'T', 'F', 3637, 'D', 2203, 6855, 'W', 'Z', 4121]
Example Output: 8385, I, 5937, N, H, 7143, 9643, 7171, z, c, A, 2163

Example Input: [1309, 1205, 5047, 1973, 1197, 'f', 'j', '6005', '8023', 'P', '7767', 'r', 'X', '2273', '1019', '7885', '9459', '6299', 'i', 'p', '6561', 'b', 'G', 'r', 'w', 't'], ['R', 8499, 'd', 'e', 'Y', 'l', 9471, 4967, 'O', 1849, 5003, 'v', 'w', 1255, 9631, 9625, 's', 'f', 'j', '6005', '8023', 'P', '7767', 'r', 'X', '2273', '1019', '7885', '9459', '6299', 'i', 'p', '6561', 'b', 'X', 'O', 7635, 1485, 8953, 'e', 'd', 'd']
Example Output:
f, j, 6005, 8023, P, 7767, r, X, 2273, 1019, 7885, 9459, 6299, i, p, 6561, b