In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1507, 'y', 'k', 8539, 7225, 'I', '3551', 'z', 'Q', '1123', 'p', 'z', '9013', '4249', '1311', 'r', 's', 5945, 9883], ['m', 'y', '3551', 'z', 'Q', '1123', 'p', 'z', '9013', '4249', '1311', 's', 8311, 6345, 'Z', 5081, 3505, 'e', 4977]