In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5261, 2799, 1871, 'H', 'm', 7277, 1817, 'O', 3685, '9987', '5959', '6929', 'g', '5515', 'V', 'i', '9989', 'W', 'A', 'x', 'O', 715, 'u', 'G'], ['w', 'g', 'Y', 5163, 6533, 7665, 't', 6671, '9987', '5959', '6929', 'g', '5515', 'V', 'i', '9989', 'W', 'A', 'U', 8297]