In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[13, 8087, 1681, 's', 't', 'p', '2873', 'l', '8991', '4395', '1309', '2599', '2357', 'D', 'Y', 'W'], ['A', 5865, 't', 'p', '2873', 'l', '8991', '4395', '1309', '2599', '2357', 'X', 8347, 6053]