In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['z', 'p', 'v', '3117', 'r', 'T', '431', 'l', 'J', 'c', '5887', 's', 's', 8711, 'b', 'B', 'Q', 3913], ['d', 'Q', 5157, 4335, 'u', 3783, '3117', 'r', 'T', '431', 'l', 'J', 'c', '5887', 's', 'r', 'T', 'J', 't']