In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6127, 'P', 'Z', 'c', 'N', 'A', 'P', 'B', 5849, 'D', 'b', 5435, 'R', 'J', 'S', 'a', '7377', 'b', 'y', '9793', '811', 'C', 'l', 'x', 'U', 'e', 'O', '83', 'A', '7205', '8537', '8157', 'S', 'Y', '9985', 't', 'O', 1555, 'A', 3471, 4549, 327, 3337, 'j', 'D', 'h', 'S', 'g', 'U', 'Z'], [4491, 653, 6391, 'Z', 445, 9549, 'G', 8117, 'h', 3587, 'q', 'N', 'h', 1607, 'v', 3551, 4809, 'g', '7377', 'b', 'y', '9793', '811', 'C', 'l', 'x', 'U', 'e', 'O', '83', 'A', '7205', '8537', '8157', 'S', 'Y', '9985', 't', 'X', 'Y', 'e', 'u', 1441, 'X', 'P', 2589]