In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['z', 'f', 865, 4303, 5701, 'k', '2187', '3085', '3845', '6359', '6663', 'z', 'q', 'H', 'r', 8143, 1043], ['H', 61, 'J', 3463, 1191, 8575, 'Y', 'S', '2187', '3085', '3845', '6359', '6663', 'z', 'q', 'H', 'd', 'd', 2229]