In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['n', 'z', 'K', 'I', 't', '5297', '3003', '5057', 'R', '9371', 'g', 'b', '1123', '3885', 'Y', '3243', 'V', 'G', 'g', 'E', 'U', 7839, 'm', 8371, 2565, 505, 9103, 'J'], ['f', 2625, 9367, 'U', 'u', 1917, 1703, 'I', 't', '5297', '3003', '5057', 'R', '9371', 'g', 'b', '1123', '3885', 'Y', '3243', 'V', 'G', 'g', 'L', 5311, 'M', 5127, 4973, 'a', 27]