In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[581, 9279, 'k', 5835, 6283, 'J', 'Y', '1631', 'q', 'F', 'u', '3589', 'p', 'H', 3835], ['t', 9165, 'O', 'Y', '1631', 'q', 'F', 'u', '3589', 'L', 8659]