In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['d', 'L', 3691, 959, 'w', 'g', 3225, 4915, 4289, 'M', 'u', 'f', 3943, 'D', 'r', '517', 'K', 'p', 'F', '7603', 'd', '2175', 'x', '29', '8945', 'W', 'n', '159', '6307', '877', 'N', 'D', 'q', 'y', 1709, 'M', 9049, 4049, 491, 'm', 3273, 'F', 'v', 467, 'b', 5983, 'X', 'u'], [8145, 'H', 'r', '517', 'K', 'p', 'F', '7603', 'd', '2175', 'x', '29', '8945', 'W', 'n', '159', '6307', '877', 'N', 'D', 'q', 'o', 6255, 6777, 6227, 5857, 8765, 'D']