In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4715, 'P', '725', 'p', 'Y', 'p', 'z', '4921', '6983', 'v', '8435', 'p', 1027, 'I', 239, 9803, 2731, 657, 5115, 8977], ['f', 'X', 'f', 'm', 'c', 's', 211, '725', 'p', 'Y', 'p', 'z', '4921', '6983', 'v', '8435', 'Z', 'i', 7911, 4057, 1511, 7105, 'Q', 3805]