In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3417, 9351, 7863, 9551, 'U', 211, 'k', 9677, 4317, 9831, 'D', 1327, 'R', '2991', 'Q', 'k', 'p', '8079', 'g', '5949', '303', '3353', '8037', 'j', 'z', '9771', 'c', 'o', 'S', 'T', 6515, 'F', 'z', 7861], [4085, 'K', 9763, 'Z', 'J', 5491, 'h', 'v', 'R', '2991', 'Q', 'k', 'p', '8079', 'g', '5949', '303', '3353', '8037', 'j', 'z', '9771', 'z', 9867, 9005]