In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['v', 'M', 5889, 2009, 'h', 7799, 'g', 'c', '5471', '2995', 'd', 'E', '9727', '2627', '7165', 'X', 'L', 'Q', 'l', 2069, 1185, 'a', 1403, 6615], [8813, 7445, 's', 'v', 'O', 5597, 4991, '5471', '2995', 'd', 'E', '9727', '2627', '7165', 'X', 'R', 'm', 8825, 5049, 'p']