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

Ex Input:
[8937, 'k', 'O', 'p', 'C', 1375, 'i', 'X', 'l', 'L', 'u', 'C', 5395, 'n', 6919, 8055, 1091, '789', 'M', 'c', '431', '3497', '6001', '3601', 'Q', 'R', 'k', 'D', 'k', 'q', '343', 'b', 'j', '4465', '7421', '3927', 'G', '6047', '8287', '187', '2247', 'w', 'S', 'c', 'v', 'X', 'm', 'b', 'a', 'l', 'l', 'w', 'R', 'b', 'W'], [6245, 6001, 'm', 'L', 'o', 7883, 'v', 833, 'n', 9131, 'F', 913, 'z', 'A', 'p', 'v', 4669, 't', 'i', 5055, 8833, 2829, '789', 'M', 'c', '431', '3497', '6001', '3601', 'Q', 'R', 'k', 'D', 'k', 'q', '343', 'b', 'j', '4465', '7421', '3927', 'G', '6047', '8287', '187', '2247', 'w', 'S', 'c', 'v', 'X', 'k', 2275, 'p', 1367, 4807, 5581, 7895]

Ex Output:
789, M, c, 431, 3497, 6001, 3601, Q, R, k, D, k, q, 343, b, j, 4465, 7421, 3927, G, 6047, 8287, 187, 2247, w, S, c, v, X


Ex Input:
['S', 'o', 9247, 'W', 'G', 5923, 4791, '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 's', 'T', 5829, 'p'], ['K', 'U', 'H', 8611, 1005, 'I', '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 'C', 9577, 8279, 2247, 'x', 4917, 'H']

Ex Output:
8083, 3207, 9137, 9359, 9297, 9667, 75, h, 9671


Ex Input:
['L', 'H', 'm', 'F', 673, 'K', 'V', 1433, 's', 'a', 'I', 'I', 2633, 'e', 'z', 2809, 'g', 'N', 'O', '2981', '1075', 'z', 'b', 'K', '6363', '9417', '1337', 'P', '1747', 'x', 'T', '3077', '5553', '3611', '4441', 'B', '8843', '4385', '6727', 'g', 'K', '1965', '4865', 'x', '4761', 'q', 7445, 6305, 't', 'c', 6349, 1831, 5589, 'N', 'F', 'Q', 'y', 1765, 7317, 2997, 'P', 8417, 7809], ['Z', 'j', 7853, 2205, 5247, 6167, 't', 3079, 7175, 2553, 2011, 'o', 1223, 2851, 'M', 'd', 'H', 'F', 5839, 'O', 9619, 6165, 'I', 8161, 'U', '2981', '1075', 'z', 'b', 'K', '6363', '9417', '1337', 'P', '1747', 'x', 'T', '3077', '5553', '3611', '4441', 'B', '8843', '4385', '6727', 'g', 'K', '1965', '4865', 'x', '4761', 'i', 5203, 'j', 'z', 5351, 5465, 'v', 5065, 'a', 8611, 2005, 5219, 1491, 'j', 4105, 'L', 4757]

Ex Output:

2981, 1075, z, b, K, 6363, 9417, 1337, P, 1747, x, T, 3077, 5553, 3611, 4441, B, 8843, 4385, 6727, g, K, 1965, 4865, x, 4761