In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['U', 'Z', '9611', 'O', 'h', '4731', '3571', 'Z', 5093, 'N', 5039], ['o', 'a', 'A', 'V', 'g', '9611', 'O', 'h', '4731', '3571', 'h', 'z', 'Q', 5169]