In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6507, 8623, 6879, '1327', '6971', 'd', 'A', 3663, 7831], [1711, 4751, 3479, '1327', '6971', 'd', 'u', 1771]