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

Input: Consider Input: ['X', 8541, 'z', 'A', '3985', '181', 'k', '6327', '4303', 'Q', '6295', 'i', 'b', 'A', 'h', 'f', '4947', 'N', '4649', 'S', '1957', '2921', '7817', 'i', 'r', 3095, 't', 'i', 5121, 2147, 'O', 4145, 1995, 'E', 'a'], ['g', 'v', 491, 'F', 'Q', 8013, 5789, 6119, 'p', 8193, 'G', 6543, 'n', 'f', 5239, 'z', 'A', '3985', '181', 'k', '6327', '4303', 'Q', '6295', 'i', 'b', 'A', 'h', 'f', '4947', 'N', '4649', 'S', '1957', '2921', '7817', 'i', 'y', 9617, 4351, 'X', 9425, 3497, 6049, 8113]

Output: z, A, 3985, 181, k, 6327, 4303, Q, 6295, i, b, A, h, f, 4947, N, 4649, S, 1957, 2921, 7817, i


Input: Consider Input: [3937, 'R', 'H', '3517', '1845', 'Y', '8999', '7003', '6677', '8517', 'k', 'W', '5321', '5817', 's', '271', '4109', 'o', 5471, 's', 8751, 2307, 4959, 2645, 7227, 3355, 'Z', 'c', 'D', 1155, 'W', 'T'], ['V', 'B', 'z', 2111, 'H', '3517', '1845', 'Y', '8999', '7003', '6677', '8517', 'k', 'W', '5321', '5817', 's', '271', '4109', 'b', 8675, 9843, 'v', 'n']

Output: H, 3517, 1845, Y, 8999, 7003, 6677, 8517, k, W, 5321, 5817, s, 271, 4109


Input: Consider Input: [585, 7, 5599, 1363, 'h', 's', 'Z', '2985', '3723', 'g', '8737', 'k', '7989', '6461', 'G', 8841], [6351, 'V', 'Q', 'Z', '2985', '3723', 'g', '8737', 'k', '7989', '6461', 'X', 'h', 'b']


Output: Z, 2985, 3723, g, 8737, k, 7989, 6461