In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2239, 'l', 4981, '8435', 'f', '9755', 'g', 'j', 635], [9711, 5839, '8435', 'f', '9755', 'I', 'a', 1517]