In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['s', 'f', 'k', 'S', 543, 'w', 'X', 5227, 7855, 'a', 'F', 'X', 'D', '7133', 'B', 'd', '9235', '2309', 'c', '2707', 'm', 'N', '7615', '1699', 'A', 'F', 'X', 'M'], [5995, 'V', 'D', '7133', 'B', 'd', '9235', '2309', 'c', '2707', 'm', 'N', '7615', '1699', 'A', 'K', 3593, 455, 8865, 'r', 8537, 'S', 'g', 9331, 3381, 'Z', 7595]