In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['J', 'J', 'y', 'P', 4839, 'e', 'V', '9243', 'F', 'x', 'b', '5711', '7681', 'F', 4173, 'w', 1745, 'g', 'u', 7865], ['h', 4421, 'd', 9125, 'Y', 'T', 5463, 6251, 'e', 'V', '9243', 'F', 'x', 'b', '5711', '7681', 'T', 8709, 's', 9349, 9301, 'M']