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: [4601, 2349, 'b', 'b', 'o', 'd', 'D', 'M', 'P', '3119', 's', '9507', 'u', 7239, 'o', 5437, 5729, 3109], [2629, 9653, 7873, 'T', 6873, 2939, 'o', 'd', 'D', 'M', 'P', '3119', 's', '9507', 'w', 'G']

Output: o, d, D, M, P, 3119, s, 9507


Input: Consider Input: [5627, 'c', 1625, 6691, 4017, 5845, 9661, 1089, 'z', 'M', 1317, 'L', 1401, 7845, 's', '2787', '2429', '6359', 'V', 'D', '7715', '2203', 'B', 'a', 'c', '9533', 'a', '443', 'c', '9135', '2605', 'p', 2525, 6745, 'N', 6749, 1027, 'E'], ['B', 6363, 1601, 'O', 'e', 3503, '2787', '2429', '6359', 'V', 'D', '7715', '2203', 'B', 'a', 'c', '9533', 'a', '443', 'c', '9135', '2605', 't', 't', 'b', 6961, 'r', 4431, 'z', 4941, 'H', 'Q', 'S', 'p', 5371]


Output: 2787, 2429, 6359, V, D, 7715, 2203, B, a, c, 9533, a, 443, c, 9135, 2605