In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8551, 3809, 'H', 'i', 'N', 9543, 'I', 'g', 2363, 4407, 'X', 'X', '4659', 'l', 'N', '3451', '6587', 'p', '1323', 'd', 'P', 'P', 'M', '7893', '5889', 'r', '3551', 'l', 'H', 'I', '4489', 'R', '4599', 'T', 'h', 6417], [8429, 'H', 7627, 'q', 'G', 'X', 'X', '4659', 'l', 'N', '3451', '6587', 'p', '1323', 'd', 'P', 'P', 'M', '7893', '5889', 'r', '3551', 'l', 'H', 'I', '4489', 'R', '4599', 'T', 'D', 1461, 'H', 't', 'n', 9319, 'D', 'e', 6767, 1597, 6739, 7775, 'D', 'b', 8851, 1161, 'K', 'k', 'l', 'M']