In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['j', 'I', 'p', 9727, 'i', '5041', 'J', '5859', 'E', 'b', 2071, 511], [7603, 'J', 'i', '5041', 'J', '5859', 'U', 7131]