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

Input: Consider Input: [1477, 'o', 1059, 'R', 't', 97, 7251, 1765, 'V', 1139, 'h', 7923, 'J', 'E', '6945', 'C', 'j', '4891', '4001', 'j', 'f', '8117', 'T', '2147', 'I', '3759', '5781', 'g', 'Y', 9333, 'm', 'V', 'T', 3427, 3397, 507, 'Y', 'k', 907, 'b', 8791, 'A'], ['Y', 6653, 'v', 9685, 'D', 2111, 'd', 'y', 5885, 5653, 'i', 6307, 2051, 7807, '6945', 'C', 'j', '4891', '4001', 'j', 'f', '8117', 'T', '2147', 'I', '3759', '5781', 'g', 'd', 9367, 'Y', 3109, 7395, 'R', 'L', 9041]

Output: 6945, C, j, 4891, 4001, j, f, 8117, T, 2147, I, 3759, 5781, g


Input: Consider Input: ['c', 'N', 9495, 305, 1779, 7447, 8519, 2777, '2205', '2411', '4203', 'g', 'V', '8037', 'h', '5963', 'L', '715', 'A', 'p', 'k', 'h', 'A', 7013, 509, 'G'], ['V', 2467, 9505, '2205', '2411', '4203', 'g', 'V', '8037', 'h', '5963', 'L', '715', 'W', 4557, 's', 4431]

Output: 2205, 2411, 4203, g, V, 8037, h, 5963, L, 715


Input: Consider Input: ['Z', 4791, 9505, 'e', 4999, 'U', 4427, 655, 1593, 2159, 2181, 7989, 'R', 7009, 'b', 'c', 'A', 'h', 'D', '4721', '5955', 'J', '5561', 'S', '4421', 'f', '9463', '4419', '5841', 'C', 'S', 'd', 'b', 'W', 'n', 5273, 'm', 1141, 'm', 'V', 'd', 'n', 'x', 6423, 3907, 7329, 'D', 1227], [7425, 5395, 'Q', 4661, 3479, 2465, 7545, 'Y', 'F', 'h', 'F', 6629, 'A', 'h', 'D', '4721', '5955', 'J', '5561', 'S', '4421', 'f', '9463', '4419', '5841', 'C', 'S', 'd', 'b', 'r', 9317, 'M', 'X', 'n', 1211, 'G', 'z', 3989, 7035, 'f', 'U', 'g', 7487, 'P', 5955, 'X']


Output: A, h, D, 4721, 5955, J, 5561, S, 4421, f, 9463, 4419, 5841, C, S, d, b