In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7587, 'P', 5317, 3767, 'i', 2165, 6191, 'c', 8237, 'H', 9139, 'v', 'K', 395, 'X', 'C', '6833', 'M', '2577', '4007', '4101', '7385', '8599', '2887', '989', 'v', 'w', '9603', 'w', '7887', '7737', '3041', 'c', '3441', '8877', 'l', 7239, 'y', 'g', 'J', 1571, 7147, 'S'], [2763, 1195, 1739, 2503, 7251, '6833', 'M', '2577', '4007', '4101', '7385', '8599', '2887', '989', 'v', 'w', '9603', 'w', '7887', '7737', '3041', 'c', '3441', '8877', 'f', 9815, 'z', 's', 6567, 'c', 'U', 'u', 'y', 'q', 'w', 'y', 2979, 3233, 991, 'V', 'm']