In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[385, 'n', 3245, 'f', 'N', 'S', 'S', 'l', 'S', 6143, 'X', 'M', '9299', 'M', 'Y', 'o', '3163', '8557', 'u', 'N', '6987', '4535', 'g', 'n', '9883', 'h', 'x', 3531], ['t', 'Y', 'b', 'T', 'X', 'M', '9299', 'M', 'Y', 'o', '3163', '8557', 'u', 'N', '6987', '4535', 'g', 'n', '9883', 'h', 'e', 9143, 'i', 'W']