In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4249, 1307, 'R', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'H', 'K', 7197, 3907, 'I', 5561], [8961, 1477, 'X', 'C', 7153, 1005, 'C', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'L', 7313, 2449, 4181, 1573]