In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9807, 'J', '1725', '1267', 'o', '8565', '1627', '9059', 'h', 'U', 'f', 'g', 6165, 543, 'R', 'n'], [4543, 'G', 6941, 2931, 'T', '1725', '1267', 'o', '8565', '1627', '9059', 'h', 'U', 'P', 653]