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

Input: Consider Input: [4717, 'J', 'B', 'f', 'a', 9035, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'F', 5099], ['Q', 3557, 'y', 2689, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'k', 8835, 'C', 8979]

Output: 3041, 491, 3395, 3117, 4793, 4305, c


Input: Consider Input: [3225, 'l', 'v', 'C', 'L', 'f', 6797, 3991, 7993, 'w', 6325, 6173, 7797, 427, 6343, 421, 4623, 'v', 'g', 'v', '9567', '6181', 'e', '4705', 'a', '4789', 'r', 'K', 'b', '8561', 'V', 'G', 'g', 'e', 'D', 'e', '9529', 'Y', '4953', '8369', 'Y', '4221', 'F', '6257', '5991', 'I', '8525', 'W', '9665', 'c', 'x', 2453, 'W', 'H', 'R', 5635, 'a', 9665, 6071, 4127, 't', 8505, 'B', 'R', 'w', 'A', 6985, 'u'], ['G', 'z', '9567', '6181', 'e', '4705', 'a', '4789', 'r', 'K', 'b', '8561', 'V', 'G', 'g', 'e', 'D', 'e', '9529', 'Y', '4953', '8369', 'Y', '4221', 'F', '6257', '5991', 'I', '8525', 'W', '9665', 'S', 'Y', 3793, 5393, 4571]

Output: 9567, 6181, e, 4705, a, 4789, r, K, b, 8561, V, G, g, e, D, e, 9529, Y, 4953, 8369, Y, 4221, F, 6257, 5991, I, 8525, W, 9665


Input: Consider Input: [4985, 'G', 453, 'I', 'H', 2137, 'S', 3783, 5643, 6195, 'L', 6123, 'f', 'A', 'o', 'm', 4737, 9887, 's', 9339, '1025', '1765', '2295', '9165', 'L', 'U', '9815', '1557', '1301', '7429', '8383', '6581', '4947', 'j', 'D', 'a', 'h', 'W', '3447', '883', 'U', 'e', 'Y', 'x', 5543, 'g', 'f', 'c', 1137, 3871, 'F', 'a', 9649, 6333, 5725, 'C', 'z', 'D', 's'], [1357, 7273, 1137, 'o', 3989, 1509, 'U', 4827, 'G', 9977, 'B', 6261, 'P', 5113, '1025', '1765', '2295', '9165', 'L', 'U', '9815', '1557', '1301', '7429', '8383', '6581', '4947', 'j', 'D', 'a', 'h', 'W', '3447', '883', 'V', 525, 2287, 4383, 'y', 'S', 1193, 's', 7561, 'R', 8783, 'Q', 'S', 'Y', 9879, 983, 'b', 'Q']


Output: 1025, 1765, 2295, 9165, L, U, 9815, 1557, 1301, 7429, 8383, 6581, 4947, j, D, a, h, W, 3447, 883