In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['v', 8069, 5695, '6271', 'v', 'm', 'h', '547', 'J', 'W', 'd', 'J', '1961', 'g', 'K', 1899, 'I', 5317, 1431, 2187, 6809, 343], ['x', 'W', 'o', 1517, 1097, 'b', 'v', 4907, 's', 9821, '6271', 'v', 'm', 'h', '547', 'J', 'W', 'd', 'J', '1961', 'g', 'H', 'D']