In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9197, 'P', 'V', 2727, 6315, 6777, 'D', 4327, 4163, 'o', 'a', 3249, 3091, 6411, 'a', 's', 'S', '3225', '3781', '6447', 'O', '9177', '1099', 'Z', 's', '5191', 'B', 'g', '215', 'l', 'u', 'G', 'L', 'r', 'T', '7671', '4803', 'p', 'n', 8221, 'q', 'U', 8619, 'a', 'm'], ['e', 'P', 'a', 'C', 6857, 7577, 'Y', 1035, 2533, 'E', 2263, 5113, 3101, 4905, 'd', 1243, 3033, 7497, 8401, 's', 'S', '3225', '3781', '6447', 'O', '9177', '1099', 'Z', 's', '5191', 'B', 'g', '215', 'l', 'u', 'G', 'L', 'r', 'T', '7671', '4803', 'G', 'k', 9751, 123, 5145, 'N', 'W', 5457, 'M', 'J', 'J', 665]