In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2347, 'S', 7561, 'W', 'D', 'y', '2665', '4447', '8619', 'V', '2195', 'u', '8857', '5881', '3357', '8779', 'J', 7319, 'p', 'g'], ['S', 'l', 7629, 'K', 4085, '2665', '4447', '8619', 'V', '2195', 'u', '8857', '5881', '3357', '8779', 'm', 'V', 'V', 6949, 8495, 'y']