In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5259, 'v', 1871, 5049, 'I', 6981, '427', 'Z', '8927', 'w', 'w', '8571', 'l', '3711', 'l', 'J', 1115], ['n', 6387, 'O', 2313, 'b', 2465, 'F', 3943, '427', 'Z', '8927', 'w', 'w', '8571', 'l', '3711', 'j', 9987, 9645]