In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9165, 'm', 3053, 3579, 'l', 'J', '1115', 'W', '5955', 'V', '5821', 'w', 'R', 'K', 2485, 'V', 't'], [715, 'R', 6677, '1115', 'W', '5955', 'V', '5821', 'w', 'R', 'p', 2599, 1713]