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

Input: Consider Input: [987, 885, 2111, 'P', 'e', 'h', 'h', 'C', 'P', 'V', '4563', 'E', 'J', 'M', 'n', 'C', 'Q', 'P', 'k', 'S', 'M', '8993', '8675', '6707', 'Q', 'r', '4351', 'Q', 'q', 'a', 6295, 1061, 1619, 3509, 8583, 'f', 1157, 5365, 'l', 'x', 'B', 'U', 141, 5753, 'F', 7595, 'H'], [8245, 137, 5887, 1267, 5851, 'n', 7393, 'f', 9739, 9983, 'h', 'h', 'C', 'P', 'V', '4563', 'E', 'J', 'M', 'n', 'C', 'Q', 'P', 'k', 'S', 'M', '8993', '8675', '6707', 'Q', 'r', '4351', 'Q', 'q', 'F', 'k', 3463, 'U', 3587, 't', 'j', 'q', 'M', 1213, 9955, 'h', 9779, 'l', 8839, 'G', 8477, 9341, 6071, 'm']

Output: h, h, C, P, V, 4563, E, J, M, n, C, Q, P, k, S, M, 8993, 8675, 6707, Q, r, 4351, Q, q


Input: Consider Input: [5071, 3641, 'a', 'n', 4549, 'K', '6783', 'P', '5113', '9801', '4323', 'u', '4227', 'G', 'J', '5259', 't', 'G', 'L', 3179, 10017, 'p', 1633, 3951, 3277, 'c'], ['k', 3793, 'G', 'z', 'F', 3735, 595, 'c', '6783', 'P', '5113', '9801', '4323', 'u', '4227', 'G', 'J', '5259', 'f', 'u', 9709, 6341, 'N', 'F', 'G', 5533]

Output: 6783, P, 5113, 9801, 4323, u, 4227, G, J, 5259


Input: Consider Input: [7627, 2525, '6217', 'g', 'j', '8203', 't', '2919', '7655', 's', '4769', 'n', 'b', 7779, 2405, 'e', 'y', 'S', 7205, 'E'], ['j', 'U', 'b', 2757, 'X', 5365, 'v', 'p', 307, '6217', 'g', 'j', '8203', 't', '2919', '7655', 's', '4769', 'n', 'L', 3979, 659, 6971, 5737, 1189, 5917, 'D', 'i', 'F']


Output: 6217, g, j, 8203, t, 2919, 7655, s, 4769, n


