In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6257, 'U', 'J', 5587, 3013, 'u', 'F', 'c', 'Z', '6845', 'H', 't', 'g', 'C', 'd', '3419', 'z', 'W', 9829, 'y', 4621], [7105, 293, 'c', 'Z', '6845', 'H', 't', 'g', 'C', 'd', '3419', 'I', 7809, 3947, 'Z', 'K', 't', 'o', 5653, 'c']