In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['r', 187, 'm', 'S', 'z', 5311, 'Y', 'h', 'y', 'F', 'n', 'h', 'V', '5467', 'C', 'd', '2611', '3895', 'h', 'W', 'T', '7115', 'N', '4227', '2001', 'b', 'n', 'P', 'k', 5257, 'A', 'm', 'q', 'Q', 'n', 'n', 'd'], [5561, 8887, 7269, 'z', 7529, 4645, 'V', '5467', 'C', 'd', '2611', '3895', 'h', 'W', 'T', '7115', 'N', '4227', '2001', 'y', 1507, 'z', 'a']