In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[37, 'S', '8727', '7261', 'H', '3163', 'M', '2179', '8013', 'z', 's', 'B', 'Q', 2383, 1515, 2181, 4437, 5939], ['A', 8661, 8291, 'o', 'J', 7707, '8727', '7261', 'H', '3163', 'M', '2179', '8013', 'z', 's', 'l', 'a', 'S', 'a', 5657, 6251, 6489, 'K', 'A']