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

Example Input: ['E', 'V', 5783, 'G', 8167, 7189, 'I', 'A', '5987', 'd', 'u', '5069', 'v', 'i', '7725', '6567', '9085', '347', '4353', 'A', '5711', 'L', 'S', 'S', 'Z', '8949', 'X', 1807, 7157, 'S', 6831, 'T', 805, 'H', 2489, 'S', 'F', 7167, 'Q', 2907, 6863, 'k', 6843, 2527], ['R', 'y', 'k', 8823, 337, 1587, 'S', 'm', 5803, 'Q', 7073, 'A', '5987', 'd', 'u', '5069', 'v', 'i', '7725', '6567', '9085', '347', '4353', 'A', '5711', 'L', 'S', 'S', 'Z', '8949', 'S', 'O', 2883, 'o', 7283, 9175, 'G', 1287, 'u', 4403]
Example Output: A, 5987, d, u, 5069, v, i, 7725, 6567, 9085, 347, 4353, A, 5711, L, S, S, Z, 8949

Example Input: ['P', 6481, 'O', 6003, 1505, 'G', 3907, 'c', 5741, 3, '4963', '1225', '4331', '1287', 'v', '8479', 'y', '673', 'M', 'V', '8307', 'C', '7931', 'z', 'Z', 'P', 'i', 9259, 'T'], [3141, 4731, 4787, 6417, 8539, 3015, 3437, 6005, 'w', '4963', '1225', '4331', '1287', 'v', '8479', 'y', '673', 'M', 'V', '8307', 'C', '7931', 'z', 'k', 6421, 645, 6161, 'm']
Example Output: 4963, 1225, 4331, 1287, v, 8479, y, 673, M, V, 8307, C, 7931, z

Example Input: ['G', 2557, 'x', 'A', 3773, 'U', 'u', 6081, 535, 8237, 3197, 'f', 'J', 3543, '5505', '3349', 'J', '519', 'L', '4347', 'n', '9767', '6533', 'w', '5111', '2503', '259', 'X', '3611', 'U', '5597', '1891', '6001', 'J', '2481', 'q', 'g', 'u', 1453, 'v', 'y', 't', 'k', 5357, 'G'], [5469, 'm', 't', 'f', 5639, 'd', 'c', 'V', 8551, 1945, 6983, '5505', '3349', 'J', '519', 'L', '4347', 'n', '9767', '6533', 'w', '5111', '2503', '259', 'X', '3611', 'U', '5597', '1891', '6001', 'J', '2481', 'G', 'q', 153, 'd', 4723, 'Q', 1269, 'f', 7743, 'R', 'm', 6485, 2343, 'x', 4125, 3949, 4635, 'T']
Example Output:
5505, 3349, J, 519, L, 4347, n, 9767, 6533, w, 5111, 2503, 259, X, 3611, U, 5597, 1891, 6001, J, 2481