In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['R', 1569, 5945, 615, 'Z', 7339, 'f', '5323', '2763', '8375', 'b', '505', '6861', '9645', '1383', 'c', 'y', 'M', 'v', 6743, 'M'], [3173, 'L', 'I', 1225, 'A', '5323', '2763', '8375', 'b', '505', '6861', '9645', '1383', 'z', 2185, 9833, 'w']