In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3031, 5119, 5485, 5537, 7175, 'g', '9771', '273', 'p', 's', 'b', 'f', '3291', 'q', 'w', 'N', '5051', 'A', 6387, 'w', 'o', 'Z'], ['g', 'p', 'i', 'P', 7663, 8703, 8787, 'R', 3885, 'g', '9771', '273', 'p', 's', 'b', 'f', '3291', 'q', 'w', 'N', '5051', 'k', 7145, 819, 'F', 'O', 'O', 7995]