In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 6037, 2049, 'a', 'G', 9677, 7235, 6331, 'i', 5385, 'a', 'k', 'z', 'w', '7719', '1613', 'a', 'V', '9579', 'K', '3245', '1893', 'H', 's', 2243, 327, 'S', 'd', 'S', 'R', 9355, 'd'], [6581, 8961, 5475, 3935, 9595, 'h', 'J', 8165, 'g', 'u', 4181, 'N', 'a', 'k', 'z', 'w', '7719', '1613', 'a', 'V', '9579', 'K', '3245', '1893', 'Y', 5627, 'S', 'Y', 'S', 8823, 'G', 6527]