Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [3671, 3385, 5947, 9213, 'J', '7793', 'B', '2105', 'T', 'j', '6295', 'b', '2233', '7343', 'r', '8941', 'n', 'l', '6225', 'H', '2391', 'z', '6893', '6961', '5277', '7837', '4715', 'w', 'J', '1407', 'Q', 'v', 'W', 'd', 'R', 407, 7863, 3743, 'o', 4539, 'K', 'F', 'L', 'W', 8059, 6981, 533, 6599, 'E', 'I', 'V', 'y', 'l'], [7951, 2321, 'p', 1253, 'K', 5691, 915, 'T', 6365, 625, 8439, 'T', 1853, 'L', 3291, 5635, 4591, 'J', '7793', 'B', '2105', 'T', 'j', '6295', 'b', '2233', '7343', 'r', '8941', 'n', 'l', '6225', 'H', '2391', 'z', '6893', '6961', '5277', '7837', '4715', 'w', 'J', '1407', 'Q', 'v', 'o', 'B', 4121]
Output:
J, 7793, B, 2105, T, j, 6295, b, 2233, 7343, r, 8941, n, l, 6225, H, 2391, z, 6893, 6961, 5277, 7837, 4715, w, J, 1407, Q, v