In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Q', 'b', '6673', '6829', '5965', 'C', 'A', 6479, 'b'], ['c', 237, 4341, 3959, '6673', '6829', '5965', 'C', 'g', 4679, 5677]