In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[163, 'S', 4405, 'D', '6229', 'y', 'r', 'm', '1953', '7251', '3281', 'k', '5263', 'h', 'Z', 'a', '8899', '2191', '6217', 'J', 'A', 'R', 'o', 'H', 9231, 3489, 'Z', 6721, 'o', 'X', 5817, 'k', 8579, 'F', 'L', 7787, 'B', 3597], ['l', 5797, 'd', 'D', '6229', 'y', 'r', 'm', '1953', '7251', '3281', 'k', '5263', 'h', 'Z', 'a', '8899', '2191', '6217', 'J', 'A', 'l', 3247, 5227, 5363, 'k', 'x']