In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8317, 4641, '8277', 'e', '9339', '8513', '4909', 'x', '6749', 'M', '6519', '6203', 'u', '4331', 't', '6957', 'y', 237, 'R', 7939, 3857, 8783, 'D', 'F', 'X', 'b', 4931, 6051], ['p', 'D', 'd', '8277', 'e', '9339', '8513', '4909', 'x', '6749', 'M', '6519', '6203', 'u', '4331', 't', '6957', 'K', 4947, 'G', 1397, 8665, 'M', 2645]