In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8563, 9225, 5273, 'S', '1135', '3653', 'e', 'p'], [3897, 3281, 2941, 'S', '1135', '3653', 2721, 'Y', 'R']