In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5983, 'j', 'o', 'Z', 427, 4055, 'o', 2739, 4631, 'Q', '2505', '5785', 'b', 'z', '3601', 'O', '4189', '9677', 'j', 7985, 'D', 'K', 2923, 'W', 'v', 9401, 'U'], [3611, 'T', 'Q', 'o', 'd', 'Q', '2505', '5785', 'b', 'z', '3601', 'O', '4189', '9677', 'p', 8607, 'o', 821, 9901, 7641, 'S', 'S', 'N']