In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7313, 9217, 5045, 'A', '477', '3471', 'R', '2245', 'P', '1511', 'M', 'f', 'E', 'u', 5159], [6327, 'E', 'D', 'A', 'K', 'z', 'A', '477', '3471', 'R', '2245', 'P', '1511', 'h', 'n']