In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Q', 1177, 'Z', 7451, 'p', 5947, '5401', 'l', '9803', 'r', 'R', 'm', 'N', 'O'], ['Y', 'i', 2421, 'z', '5401', 'l', '9803', 'r', 'R', 'm', 'S', 'e']