In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2393, 'b', '2147', 'g', 'O', 'b', 'Q', 'R', 5117, 'R'], ['y', 5769, 4173, 'X', '2147', 'g', 'O', 'b', 5221, 'c']