In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[563, 3503, 'p', 1879, 'o', 'b', 'J', 'x', 'B', 2671, 67, 1313], [9581, 'q', 2233, 5047, 'o', 'b', 'J', 'x', 'h', 'S', 5513]