In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['x', 4773, 731, 2169, 'Z', 231, 'u', '8437', 'z', 'Q', '8445', 'd', 'z', 6127, 2629], ['h', 'S', 'q', 213, 'u', '8437', 'z', 'Q', '8445', 'd', 'Y', 'A', 'r']