In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1343, 5987, 'W', 6321, 1545, 9389, 4507, 'n', '8775', '7497', 'E', '3577', '1459', 'K', '7051', 'd', 'j', 4949, 6847], ['q', 'D', 2281, 1273, 'b', 3075, 'n', '8775', '7497', 'E', '3577', '1459', 'K', '7051', 'd', 'U', 'a', 'd', 7901, 'f', 7357, 'N', 'c', 2597]