In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9487, 7535, 'S', 'G', 'B', 'i', 'L', 'l', 'w', 'T', 'A', 'A', '2611', 'I', '9235', '7217', '8197', 'c', '6409', 'O', '335', '8285', '6135', 'O', 'j', '307', '1585', 'v', 'L', 'g', 'r'], ['S', 1329, 'c', 'R', 'F', 'W', 2547, 'Q', 'w', 'i', 'q', 'T', 'A', 'A', '2611', 'I', '9235', '7217', '8197', 'c', '6409', 'O', '335', '8285', '6135', 'O', 'j', '307', '1585', 'v', 'L', 'd', 1373, 'L', 225, 'X', 'X', 'H', 'D', 'g', 'c', 7393, 3817, 'g', 'R', 'J', 's', 2557, 'v', 'N']