In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1365, 'W', 'Y', 'x', 'C', 'k', 'W', 4631, 'c', '3421', 'b', 'p', 'c', 'p', '5699', '8861', 'h', '845', 'r', 'T', '7059', '1699', '5365', '9689', 'X', 'r', '8775', 'N', 'G', 'a', 'b', 'R', '3013', 'C', '5671', '8415', 'X', 'n', '6965', 'D', 2839, 7979, 'Y', 7695, 8293, 3495, 'W', 't', 5395], ['i', 8131, 'S', 'h', 'W', 5561, 'O', 5997, '3421', 'b', 'p', 'c', 'p', '5699', '8861', 'h', '845', 'r', 'T', '7059', '1699', '5365', '9689', 'X', 'r', '8775', 'N', 'G', 'a', 'b', 'R', '3013', 'C', '5671', '8415', 'X', 'n', '6965', 'g', 8227, 1559, 'Q', 3365, 9385, 8883, 'M', 'm', 9761]