In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3245, 2563, 6517, 4761, 'd', 'K', 'K', 'h', 'Q', '2997', '475', '8029', 'Z', '4065', '127', 'A', 'f', '7351', '5011', 'M', 'O', 'S', 9107, 4861, 3111, 'H', 349, 3273, 'h', 2617, 'q', 7037, 8977], [4393, 3045, 'E', 5547, 'K', 'h', 'Q', '2997', '475', '8029', 'Z', '4065', '127', 'A', 'f', '7351', '5011', 'M', 'O', 'W', 849]