In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['i', 'U', 'M', '8699', 'o', 'O', 'D', 3723], ['i', 'w', 's', 4251, 'M', '8699', 'o', 'O', 'z', 1609, 7665]