In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1001, 653, 9515, 197, 'a', 9425, 9727, 'D', 6987, 705, 'Q', 457, 'V', 'p', 653, 'm', 1789, 9405, 8975, 9577, 'I', 7691, 'P', '4309', '1123', '7899', 'c', '7047', '515', '8299', 'L', 'C', 'B', '1003', '3235', 'K', '3925', 'a', '3091', '7015', 'r', '1925', 'G', 'Y', 'D', 'x', 't', 'H', 'S', 'H', '589', '1787', 'Y', 5241, 'Y', 8317, 'y', 'O', 'I', 5899, 'R', 2265, 'D', 2967, 5695, 'h', 2827, 'g', 7923, 7931, 263, 9105, 'X', 8723, 'n', 2669, 7701, 4559], ['z', 'L', 2755, 'g', 243, 'P', '4309', '1123', '7899', 'c', '7047', '515', '8299', 'L', 'C', 'B', '1003', '3235', 'K', '3925', 'a', '3091', '7015', 'r', '1925', 'G', 'Y', 'D', 'x', 't', 'H', 'S', 'H', '589', '1787', 'K', 8187, 7655, 2309, 5879, 'b', 4431, 'H', 6015]