In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['A', 2397, 'w', 2339, 4523, 7001, 5495, 'I', '3907', '3029', 'w', '333', 'r', '9715', 'W', 3489, 'm', 3031, 3275], [4271, 4287, 7987, 1629, 'I', 'P', 9705, 'I', '3907', '3029', 'w', '333', 'r', '9715', 'n', 'H', 4099, 4337, 'D']