In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3587, 'W', 1593, 'D', 411, '2247', 'A', 'E', 'S', 'w', '3665', 'o', '3195', 'y', '135', '2441', '6505', 'h', 'E', '165', 'S', '8511', 'c', 7917, 157, 3711, 'L', 'e'], ['L', 2297, 1243, 5345, 5539, 7885, 'h', 7115, 10011, 6173, 'Y', 't', 'e', 'J', 2003, 3043, '2247', 'A', 'E', 'S', 'w', '3665', 'o', '3195', 'y', '135', '2441', '6505', 'h', 'E', '165', 'S', '8511', 's', 891, 7265, 4451, 'E', 9285, 'K', 4789, 8841, 4181, 'm', 8291, 'r', 495, 8215, 'L', 'Q']