In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9977, 'u', 3667, '7355', 'p', '461', 't', '8515', 'w', 't', '2727', 't', '6569', '3911', '9827', 'Z', 'Z', 'p', 'I', 'U'], ['K', 'E', 'N', 'M', 8299, 4395, 5535, 9055, 6415, '7355', 'p', '461', 't', '8515', 'w', 't', '2727', 't', '6569', '3911', '9827', 'q', 'k', 1099, 8839, 7419, 2799, 1333, 4243, 'X']