In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1887, 'J', 'T', 'L', 'M', 4343, 8661, 5483, 659, 'W', '7205', '7637', '2301', '8145', '8069', 'D', '6039', '2723', 'l', 's', 'r', 'g', 'U', '9477', 'G', 'a', 8195, 1749, 'k', 9585, 'w', 6611, 8837, 'A'], ['i', 'O', 'z', 'L', 3845, 2147, 'G', 2355, 6865, 4461, '7205', '7637', '2301', '8145', '8069', 'D', '6039', '2723', 'l', 's', 'r', 'g', 'U', '9477', 'o', 6593, 8199, 'z', 6677, 8909, 'm', 'c', 8037]