In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3417, 'Z', '4665', '2203', '4399', '9963', '9459', 'p', '2697', 'X', 'I', 'h', 'H', 'S', 'f', 9703, 'M', 9239, 'r', 5613, 6471, 2687], ['Y', 'D', 'K', 'a', 'I', 't', '4665', '2203', '4399', '9963', '9459', 'p', '2697', 'X', 'I', 'h', 'D', 8463, 149, 'F', 8507, 9791, 'j', 2403]