Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [6951, 5063, 'D', '2121', '2709', 'L', '5457', '8809', '8771', 'S', '2283', 'Z', 'b', '3395', 'N', '9971', 'x', 'D', 'T', '2101', 'W', 'b', '6315', 'G', 'm', '8761', 'y', '1683', '9393', 'r', '6139', '6405', 'z', 's', 5325, 'W', 4603, 'A'], ['H', 2041, 8481, 'B', 'G', 'S', 509, 117, 3045, 803, 3957, 9469, 4397, 'T', 3193, 9619, 'u', 'y', 'q', 'p', 'r', 8683, 'p', 'L', 5181, 3747, 's', 3145, 6079, 'D', '2121', '2709', 'L', '5457', '8809', '8771', 'S', '2283', 'Z', 'b', '3395', 'N', '9971', 'x', 'D', 'T', '2101', 'W', 'b', '6315', 'G', 'm', '8761', 'y', '1683', '9393', 'r', '6139', '6405', 'Q', 'd', 'q', 6139, 'I', 3349, 7979, 8847, 'J', 7575, 2601, 4181, 765, 'G', 'E', 'F', 'z', 4129]
Output:
D, 2121, 2709, L, 5457, 8809, 8771, S, 2283, Z, b, 3395, N, 9971, x, D, T, 2101, W, b, 6315, G, m, 8761, y, 1683, 9393, r, 6139, 6405