In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5175, 'l', 6031, 'R', 'e', 'M', 7763, 9561, 'R', 'f', 'j', '8229', '867', 'Q', 'v', '1613', '2909', 'b', '8265', 'Y', 'g', '6381', 'b', '4643', 'd', 5855, 9991, 'G', 'r', 8999, 7491, 8117], [2841, 'p', 'd', 2963, 'L', 'a', 3273, 'B', 'j', '8229', '867', 'Q', 'v', '1613', '2909', 'b', '8265', 'Y', 'g', '6381', 'b', '4643', 'R', 9725, 7197, 6045, 'a', 5959, 'n', 7895, 'Z']