In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5647, 'i', 'o', '7075', 'T', 'N', 'S', 'Q', '4583', '3773', 'H', 's', '7365', 'W', 5547, 'l', 'J', 7031, 4323, 1775, 3345], [3909, 'c', 'o', '7075', 'T', 'N', 'S', 'Q', '4583', '3773', 'H', 's', '7365', 'M', 6947, 'X', 3871, 1625, 'J']