In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6985, 'c', 7099, 'Z', 'c', 'I', 183, 's', 'R', 4265, 4697, 'A', '8223', 'L', '9339', '217', 'p', '569', '5291', 'h', '1729', '4227', 'x', 'Y', 'X', 5499, 'F', 1321, 291, 8809, 4365, 7145], [9325, 8175, 'p', '8223', 'L', '9339', '217', 'p', '569', '5291', 'h', '1729', '4227', 'x', 'Y', 'h', 'd']