In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['p', 851, '7789', 's', 'J', '7961', '8499', '5733', 'c', 'T', 'E', '9727', 'Q', 9357, 5205], [7731, 6197, 9835, 7439, '7789', 's', 'J', '7961', '8499', '5733', 'c', 'T', 'E', '9727', 'M', 9157, 4743, 'K', 'q', 'v', 5925, 'n', 'W']