In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5237, 'F', 'J', 'i', '4391', 'g', '193', '2265', '2907', 'v', '4769', 'M', 'D', 3727, 4737], [6877, 'T', 'g', 2025, '4391', 'g', '193', '2265', '2907', 'v', '4769', 'M', 'b', 't', 'T', 'K', 'h', 8091, 'p']