In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[985, 3223, 'B', 'q', 'T', 'o', 1741, 'd', 'N', '145', '7157', '7215', 'X', 'D', '9113', 'S', 'V', '5575', 'x', 'Z', '1043', '791', 'd', '2993', 'g', 'o', 'B', 'U', 'x', 2797, 'g', 7105, 'j', 5207, 6073, 7395, 5335], ['E', 'k', 1107, 'X', 'Z', 'G', 3493, 3525, 6965, 10027, 3495, 2501, 'B', 'Z', 'd', 'N', '145', '7157', '7215', 'X', 'D', '9113', 'S', 'V', '5575', 'x', 'Z', '1043', '791', 'd', '2993', 'g', 'o', 'c', 'y', 'j', 5821, 'W', 373, 'l', 'Q', 443, 't', 8173, 'f']