In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3881, 'g', '9151', '3469', 'D', 'h', '5075', 'C', '311', 'T', 'i', 'S', '8189', '3985', 'I', 'A', '2541', 'A', 't', 9217, 'F', 7759, 7067, 'J', 8885, 'f', 4091, 'n', 8495, 'U', 'e', 'p'], [9171, 'Q', 'i', 'r', 2141, 'M', 'L', 'I', 4865, 'O', 6431, 10007, '9151', '3469', 'D', 'h', '5075', 'C', '311', 'T', 'i', 'S', '8189', '3985', 'I', 'A', '2541', 'D', 9863, 1247, 9599]