In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1735, 6797, 'L', 4087, 4495, '97', 'm', 'Z', '4831', 'j', 'I', '4921', '4355', '6227', 'W', 'O', '403', '2527', '8795', '7301', 'm', 'J', 'b', 5123, 5439, 'c', 523, 'A', 'K'], [5807, 'I', 2783, 'w', 'Y', 'I', 'J', '97', 'm', 'Z', '4831', 'j', 'I', '4921', '4355', '6227', 'W', 'O', '403', '2527', '8795', '7301', 'm', 'J', 'C', 'q']