In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['P', 7541, 3469, 'a', '6997', '6629', 'A', 4751, 'T'], [6021, 't', 3387, 'a', '6997', '6629', 'X', 'P', 'i']