In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5199, 2371, 9565, 4817, 'C', 601, 'J', 'Q', 'n', 'm', 'B', '3907', 'G', 'B', 5049, 6351], [4341, 's', 'U', 9549, 7399, 'J', 5549, 'J', 'Q', 'n', 'm', 'B', '3907', 'G', 'G', 9947]