In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 5429, 'z', 'C', 'T', 'g', 'V', '6087', 'O', 'd', 845], [8439, 'c', 'T', 'g', 'V', '6087', 'A', 'b']