In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 5855, 4369, 'm', 'q', 'C', 'F', '9', '729', '7041', '2025', '899', 'Y', 'I', 8781, 'X'], ['U', 9437, 'U', 'n', 967, 'i', 'z', 'C', 'F', '9', '729', '7041', '2025', '899', 'Y', 'w', 'w', 5711, 'F', 2771, 1953, 8043]