In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6717, 'K', 3067, 7455, 3207, 'Z', 55, 'm', 8513, 's', 2445, '1105', 'a', '8017', 'c', 'j', '5525', '4097', 'S', 'm', '7323', '8475', 'R', '1495', 'N', 7393, 9517, 6885, 'o', 1793, 929, 'A', 'Q', 'N', 993, 8449, 's'], [9511, 'x', 7825, 5099, 'R', '1105', 'a', '8017', 'c', 'j', '5525', '4097', 'S', 'm', '7323', '8475', 'R', '1495', 'r', 'p', 'A', 'h', 'j']