In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['h', 'l', 8607, '5319', 'H', '6243', '2877', 'C', 'B', '8971', 'x', '4303', 'p', 'w', 9199], ['d', 'h', 'c', '5319', 'H', '6243', '2877', 'C', 'B', '8971', 'x', '4303', 'p', 'D', 2595, 'O', 6071, 1605, 'p', 6373]