In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2739, 9881, 'S', '5917', 'x', 'C', 1635, 'i'], [571, 9363, 1763, 'S', '5917', 'x', 'n', 7363, 7291]