Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5263, 4353, 7915, 649, 'm', '5125', 'N', '9707', '5723', '4515', 'w', '2221', '5849', '6449', 'B', '3541', '7527', '655', 'H', '97', 'U', 'L', '2507', 'c', '1353', '5957', '7007', 'f', '4113', '3085', '4755', '3269', 'g', 8511, 'C', 'a', 'g', 7243, 2891, 'l', 3379], [795, 2843, 4677, 2949, 8107, 'J', 3107, 'z', 'm', '5125', 'N', '9707', '5723', '4515', 'w', '2221', '5849', '6449', 'B', '3541', '7527', '655', 'H', '97', 'U', 'L', '2507', 'c', '1353', '5957', '7007', 'f', '4113', '3085', '4755', '3269', 'O', 'z', 'P', 'h', 'Y', 'r', 379, 5875, 'M', 5249, 'V', 'q', 6433]
Output:
m, 5125, N, 9707, 5723, 4515, w, 2221, 5849, 6449, B, 3541, 7527, 655, H, 97, U, L, 2507, c, 1353, 5957, 7007, f, 4113, 3085, 4755, 3269