In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1947, 'X', 'h', 4677, 2577, 'v', 7603, 's', 5951, 6723, 'P', '7169', 'U', '2475', '5387', '5153', '6661', '8035', 'v', 'G', 'v', 'I', 'H', 'I'], ['D', 'd', 'h', 'D', 1633, 'h', 'w', 679, 'J', 6281, '7169', 'U', '2475', '5387', '5153', '6661', '8035', 'v', 'G', 'v', 'I', 'P', 'G', 'S', 'E']