In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Y', 'i', '5799', 'z', '6553', 'W', 'u', 'q'], ['t', 'p', 2143, '5799', 'z', '6553', 'W', 'b', 7865, 5225, 7107]