In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5005, 'X', 'U', 'D', '1747', 'e', '9605', '2589', '5225', 'u', 'K', 'f', 'h', 'p', '7851', '4799', '4389', '2173', 'a', '9533', '6215', '4863', '2483', 'Q', 'u', 'w', 'h', 'c', 'G', 6523, 7561, 1025, 'x'], ['c', 8659, 8513, 'h', 9525, 'G', 9241, 6621, 'b', 'Z', 'K', 985, 'G', 'D', '1747', 'e', '9605', '2589', '5225', 'u', 'K', 'f', 'h', 'p', '7851', '4799', '4389', '2173', 'a', '9533', '6215', '4863', '2483', 'Q', 'u', 'w', 'O', 'K', 'j', 7867, 4277, 7625, 2059, 'R', 2611, 'd', 'o', 2511, 'g', 9485, 1359, 8239, 'B']