In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9719, 9491, 'd', 'k', 'X', 'x', 2957, 157, 'D', 'j', 'B', 'g', 'g', 'i', 's', 5499, 1625, 'r', 7819, 6147, 3089, 'h', '8315', '9715', '5415', 'F', 'V', 'S', 'O', 'L', 'i', '5589', 'R', '5457', '1195', 'r', 'r', 'k', '5327', '4509', 'A', 'X', '8021', '6975', 'r', 'C', 'F', 7285, 5887, 'Q', 7803], [997, 2867, 'h', '8315', '9715', '5415', 'F', 'V', 'S', 'O', 'L', 'i', '5589', 'R', '5457', '1195', 'r', 'r', 'k', '5327', '4509', 'A', 'X', '8021', '6975', 'W', 7451, 7729, 'G', 1225, 'l', 'd']