In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['n', 5883, 'X', 5457, 'f', 6771, 'F', '2507', 'F', 'z', 'D', '9535', 'h', 3331], [981, 'L', 9679, 'w', 'K', 'F', '2507', 'F', 'z', 'D', '9535', 'l', 'i']