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

Input: Consider Input: ['L', 'q', 'C', 'c', 6507, 'x', 'C', 8247, 2327, 'q', 9785, 'U', 1653, 5189, 1035, 5417, 7385, 3065, 8415, '765', 'D', 'Z', '2235', 'f', '6389', 'e', '4773', 'm', '6621', '1741', '3119', '9893', 'd', 's', '6143', '3079', '4281', 'T', '261', 'H', '7583', 'L', '8421', 'k', 'F', 9173, 'a'], [3971, 6169, '765', 'D', 'Z', '2235', 'f', '6389', 'e', '4773', 'm', '6621', '1741', '3119', '9893', 'd', 's', '6143', '3079', '4281', 'T', '261', 'H', '7583', 'L', '8421', 'H', 'y', 'G', 'a', 'W', 'v', 6451, 4577, 'f', 8945, 'N', 'd', 4649, 'E', 5397, 8145, 'y', 1997, 7353, 'c', 3473, 'k', 'Z', 8131]

Output: 765, D, Z, 2235, f, 6389, e, 4773, m, 6621, 1741, 3119, 9893, d, s, 6143, 3079, 4281, T, 261, H, 7583, L, 8421


Input: Consider Input: ['T', 5987, '3759', 'O', 'x', '4311', 'e', '6841', 'R', 'd', 'y', '2745', 'n', 5107, 'w', 'u'], [6625, 'm', 8849, 3385, 6853, '3759', 'O', 'x', '4311', 'e', '6841', 'R', 'd', 'y', '2745', 'a', 'G', 'G', 'e', 3501]

Output: 3759, O, x, 4311, e, 6841, R, d, y, 2745


Input: Consider Input: [1735, 6797, 'L', 4087, 4495, '97', 'm', 'Z', '4831', 'j', 'I', '4921', '4355', '6227', 'W', 'O', '403', '2527', '8795', '7301', 'm', 'J', 'b', 5123, 5439, 'c', 523, 'A', 'K'], [5807, 'I', 2783, 'w', 'Y', 'I', 'J', '97', 'm', 'Z', '4831', 'j', 'I', '4921', '4355', '6227', 'W', 'O', '403', '2527', '8795', '7301', 'm', 'J', 'C', 'q']


Output: 97, m, Z, 4831, j, I, 4921, 4355, 6227, W, O, 403, 2527, 8795, 7301, m, J