In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3771, 'd', 'g', 4935, 1967, 5445, 'Y', 'U', 'U', 'o', 6411, 4013, 4597, 'b', 'U', 'd', '3029', '329', 'b', 'K', 'E', 'd', 'W', 'Z', '4909', 'u', '9635', '6395', 'M', 'J', 'W', '3807', 'A', '1181', 'Y', 2387, 'm', 8159, 'N', 2229], ['Q', 1113, 'P', 'U', 'd', '3029', '329', 'b', 'K', 'E', 'd', 'W', 'Z', '4909', 'u', '9635', '6395', 'M', 'J', 'W', '3807', 'A', '1181', 'C', 635, 795, 667, 9363, 9365, 'x', 'R', 'e', 3233, 8695]