In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4987, 'l', 9835, 8515, '2073', 'V', 'z', '6973', '3419', 'R', 'X', 'Q'], ['y', 'O', 'b', 'F', 'l', 6051, '2073', 'V', 'z', '6973', '3419', 'R', 'Q', 'u', 'Q', 2665, 'G', 'q']