In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5209, 'a', 'p', 'L', 1245, 'R', 8797, 'z', 'z', 's', 'N', 3945, 1495, 3447, 'A', 'U', '7617', '1577', 'C', 'm', '6475', 'E', 'Y', '2517', 'H', 'm', '1077', '2217', '4393', 's', '3195', 'p', 'A', 2787, 'z'], [739, 't', 5349, 9693, 'L', 'g', 'C', 'D', 'l', 'w', 'x', 's', 1473, 5391, 'F', 6463, 'i', 'U', '7617', '1577', 'C', 'm', '6475', 'E', 'Y', '2517', 'H', 'm', '1077', '2217', '4393', 's', '3195', 'p', 'E', 'G', 5963]