In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2961, 9075, 1005, 7677, 'u', 2473, 'c', '107', 's', '1031', '6879', '2985', 'D', '3165', 'A', 9513, 'P'], [4587, 6873, 'q', '107', 's', '1031', '6879', '2985', 'D', '3165', 'y', 'E']