In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3595, 9017, 2051, 'q', 6349, 8517, 3043, 'q', 4041, 6041, 'R', 'G', 3291, 'b', 5717, '6517', '9161', 'e', '7931', 'a', '297', '2615', 'X', 'a', '145', '3985', '9675', 'e', '219', 'H', 'C', 'M', 'a', 5401, 5589, 'b', 'w', 'n', 8159, 5329, 3631, 725, 6513], ['v', 537, 7805, 1631, 8993, 'J', 9979, 'b', 'h', 'a', 6297, 'P', '6517', '9161', 'e', '7931', 'a', '297', '2615', 'X', 'a', '145', '3985', '9675', 'e', '219', 'H', 2263, 6383, 6591, 'B', 4145]