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

Input: Consider 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]

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

Input: Consider Input: ['u', 4637, 'h', 2259, 'M', 'i', 'h', 'X', 7083, 'o', 't', 9421, 't', 785, 'Y', 'Y', '5531', 'P', 'x', 'b', '4899', 'Y', '8909', '7749', 'k', '4049', '1237', 'M', '8579', 'N', '3167', '9123', '6973', '4981', 'I', '7231', '9783', '9823', 'c', 'e', '7169', '4003', 'C', 8237, 9899, 'M', 3217, 4903, 'I', 5279, 'T', 6849, 3373, 'x', 'S', 'l', 8665, 'V', 'v', 'I', 'A', 'E', 4367, 9513, 'i', 2897, 3433, 8091, 5011], [5327, 4587, 'E', 'w', 4287, 'W', 3339, 2729, 'q', 'Y', '5531', 'P', 'x', 'b', '4899', 'Y', '8909', '7749', 'k', '4049', '1237', 'M', '8579', 'N', '3167', '9123', '6973', '4981', 'I', '7231', '9783', '9823', 'c', 'e', '7169', '4003', 'p', 7351, 4915, 4485, 7747]

Output: Y, 5531, P, x, b, 4899, Y, 8909, 7749, k, 4049, 1237, M, 8579, N, 3167, 9123, 6973, 4981, I, 7231, 9783, 9823, c, e, 7169, 4003

Input: Consider Input: [1229, 2165, 9405, 7393, 'c', 6613, 987, 9213, 9841, 1761, 977, 'X', 'w', 6301, 'h', 7313, 471, 9743, 8297, 'U', 5599, 'V', 'r', 'D', 'D', '5085', 'Z', 'E', '7057', 'r', '9905', '5733', 'M', 'z', 'v', 'C', 'u', 'A', '5577', '5937', 'Z', '4509', '4005', 'Z', 'a', 'F', '6315', '5875', 'c', 'A', 'l', 'I', 'F', 'd', 'Z', 'B', 2909, 'J', 7945, 4375, 'i'], ['u', 7037, 'F', 'P', 'p', 3491, 4945, 4199, 'Z', 9041, 'K', 7385, 'F', 275, 6533, 'x', 'O', 9603, 8641, 'G', 6723, 'L', 'S', 'D', '5085', 'Z', 'E', '7057', 'r', '9905', '5733', 'M', 'z', 'v', 'C', 'u', 'A', '5577', '5937', 'Z', '4509', '4005', 'Z', 'a', 'F', '6315', '5875', 'A', 'q', 4411, 3045, 'A', 933, 7623, 'w']
Output: D, 5085, Z, E, 7057, r, 9905, 5733, M, z, v, C, u, A, 5577, 5937, Z, 4509, 4005, Z, a, F, 6315, 5875