In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8459, 1095, 'f', 7361, 9401, 'U', 'I', '3909', '1361', '1667', 'F', 'w', 'w', 4657, 4513], ['q', 3517, 2195, 'Q', 'B', 8549, 1619, 'U', 'I', '3909', '1361', '1667', 'F', 'w', 'z', 'b', 6091, 6155, 'X']