In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['D', 8613, 't', 'H', 'w', 'm', 2509, 'S', 3117, 'W', 1321, 6505, 'N', '213', 'A', '7747', 'N', '9891', '6067', '147', '9907', 'Z', '4199', '2663', '9087', 'O', '3341', 'N', 2215, 'd', 4385, 'l', 6509, 8867, 'M', 2027, 'r', 7297, 2591, 4439], [7039, 'x', 'W', '213', 'A', '7747', 'N', '9891', '6067', '147', '9907', 'Z', '4199', '2663', '9087', 'O', '3341', 'I', 7329, 8123, 8515, 'Z', 'Y', 'P', 'c']