In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['t', 'M', 507, 'q', 'k', '7897', '7583', '2027', '8267', 'U', 'E', '1177', '1267', 'T', 'G', 8831, 'F', 'E', 'p'], ['W', 3195, 'k', '7897', '7583', '2027', '8267', 'U', 'E', '1177', '1267', 'T', 'H', 2477, 'L', 'd', 2447, 1929, 'i', 'A', 5643]