In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['N', 'w', 6091, '7585', 'p', '2197', 'D', 'v', 'C', '235', '8275', 'D', '497', '6039', 'z', '313', '1033', 'u', 2517, 7987, 7673, 'Z', 'h', 'j'], [5995, 4689, 'Q', '7585', 'p', '2197', 'D', 'v', 'C', '235', '8275', 'D', '497', '6039', 'z', '313', '1033', 'O', 7533, 9015, 2859, 's', 'p']