In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7019, 'd', 'a', '4231', '8709', 'p', '8981', '3053', 'n', 'b', 'U', 'u', 'z', 'C', 'n', 'Z', 'H', '1707', 'n', 'H', 5161], ['z', 2669, 'V', 'c', 'z', 1605, 'm', 3637, 8521, 2391, 6429, 'N', 's', 3061, '4231', '8709', 'p', '8981', '3053', 'n', 'b', 'U', 'u', 'z', 'C', 'n', 'Z', 'H', '1707', 'n', 'P', 'S', 5301, 'Z', 'j', 3077, 'd']