In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['T', 'N', 'd', 'M', 6727, 'i', 8799, 5469, '4061', 'b', '8597', 'c', 'N', '4481', '5573', 'Y', '9695', 'Y', '7723', '7859', 'M', 'A', 'f', 'M'], [5041, 'o', '4061', 'b', '8597', 'c', 'N', '4481', '5573', 'Y', '9695', 'Y', '7723', '7859', 'a', 't', 431, 9239, 'N', 'E', 'h', 803]