In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['p', 'X', 'V', 'a', 'a', 'B', '4793', '7005', 'J', '6993', 'H', 'o', 'H', 'k', '5297', 'P', '7771', '1745', '8949', '169', 'n', 'M', '8955', 'e', 'j', 'm', 8535, 'o', 2975], ['U', 853, 5173, 'P', 5889, 3051, 'V', 2739, 'B', '4793', '7005', 'J', '6993', 'H', 'o', 'H', 'k', '5297', 'P', '7771', '1745', '8949', '169', 'n', 'M', '8955', 'v', 'Y', 3751]