In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['h', 6171, 7799, 'I', '7409', 'M', 't', 'y', 't', 'M'], [7139, 3407, 'c', 8385, 'I', '7409', 'M', 't', 'F', 2899, 5829, 'P']