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

Input: Consider Input: ['E', 'P', 'Z', '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'x', 9461, 2587], [9027, 289, 2515, 'k', 'N', 'i', 9689, '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'r', 'x', 737, 'a', 'w', 'K', 'S']

Output: 8337, L, 4245, M, M, H, 4531, B, p, 6961


Input: Consider Input: ['m', 'F', 5425, 1403, 6355, 7383, 'Y', 'e', 'K', '10031', 'S', '9599', 'V', 'i', '6919', 'r', 'm', 'I', 'x', '6889', 'M', '1977', 'S', 'c', 'm', '4569', 'F', 'C', 'u', 'N', 2741, 7825, 6521, 'R'], [8389, 7261, 4783, 6181, 6767, 9719, 2625, 'W', 4357, 1749, 887, 153, 8939, 'K', 1329, 'T', 'a', 'k', 'F', 't', 'K', '10031', 'S', '9599', 'V', 'i', '6919', 'r', 'm', 'I', 'x', '6889', 'M', '1977', 'S', 'c', 'm', '4569', 'F', 'C', 'u', 'K', 'E', 'P', 8489, 2309, 'j', 3937, 4731, 'H']

Output: K, 10031, S, 9599, V, i, 6919, r, m, I, x, 6889, M, 1977, S, c, m, 4569, F, C, u


Input: Consider Input: ['C', 2499, 6769, 'I', 'k', '3835', '217', '937', '941', 'a', 'f', '4513', '4825', 'R', 'w', 'r', 7325, 627, 'L', 'E', 4829], ['X', 'J', 701, 'k', '3835', '217', '937', '941', 'a', 'f', '4513', '4825', 'R', 'w', 'R', 'h', 'x', 4261, 9733, 2933, 'b', 4601, 'n', 'S', 3233]


Output: k, 3835, 217, 937, 941, a, f, 4513, 4825, R, w