In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7127, 5669, 'L', 'p', 'J', 'Z', '9563', 'r', 'X', 4461], [5185, 3081, 'p', 'p', 'J', 'Z', '9563', 'g', 'U', 7209, 'i']