Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['d', 'p', 'f', 9671, 'A', '6769', 'T', 'P', 'x', '6939', 'I', 'i', '1841', '6433', 'B', 'Z', '261', 'r', '2561', '6713', '159', 'w', 'P', 'a', 'z', '3039', 'W', 'B', 'Y', 'v', 'W', 935, 'M', 9917, 5483, 655, 3131, 2991, 5445, 1319, 1797, 5, 8993, 327, 2921, 2473, 'r', 'i', 7855, 'f', 'W'], [9201, 7703, 'u', 'p', 3571, 'z', 4049, 8353, 3695, 'b', 7813, 'w', 4951, 'p', 'h', 7351, 'D', 'L', 719, 'F', 'S', 2889, 761, 'A', '6769', 'T', 'P', 'x', '6939', 'I', 'i', '1841', '6433', 'B', 'Z', '261', 'r', '2561', '6713', '159', 'w', 'P', 'a', 'z', '3039', 'W', 'B', 'Y', 'B', 7269, 1215, 5007, 8117, 'T', 9931, 'p', 4829, 1187, 2681, 4373, 2261, 4583, 'B', 5679, 9583, 'T', 3877, 9477, 'f', 1209, 'Y']
Output:
A, 6769, T, P, x, 6939, I, i, 1841, 6433, B, Z, 261, r, 2561, 6713, 159, w, P, a, z, 3039, W, B, Y