In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

['W', 'A', '5747', 'i', 'M', 'N', 8861], [1997, 'D', 5205, '5747', 'i', 'M', 'D', 3319, 1895]
5747, i, M

['l', 581, 4659, 2559, 'f', 'S', '1219', '6225', '515', '5369', 'w', 'V', 7431, 6195, 1731, 'J', 9541], [8813, 7733, 'n', 'a', 'h', 981, 'S', '1219', '6225', '515', '5369', 'w', 'q', 'A', 'U', 'J']
S, 1219, 6225, 515, 5369, w

[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']

Q, 2505, 5785, b, z, 3601, O, 4189, 9677