In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1469, 4065, '9767', 'M', 'S', 'L', 'R', 'B', 'B', 'r', 'q', 'p'], [4845, 7223, '9767', 'M', 'S', 'L', 'R', 'x', 'A', 'g']