In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['m', 4317, 4487, 5183, 'o', 'q', '9081', '3439', 'G', 'Z', 5647, 'm'], ['c', 'G', 'o', 'q', '9081', '3439', 'p', 'F']