In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['o', 'g', 'A', 'y', 'M', 473, 'M', '9607', '9349', '439', '7935', 'n', '1799', 'T', '3985', 'V', 289, 'm', 9275, 4765, 6283, 'r', 6075], [5825, 'x', 5985, 6693, 'J', 3857, '9607', '9349', '439', '7935', 'n', '1799', 'T', '3985', 'i', 3429, 6371, 'F', 'c', 3165]