In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9677, 4817, 5889, 'w', '9447', 'A', 'g', '4241', 'l', '6431', 'v', 'r', '1925', '1007', '8177', '5627', '7383', '691', 'Z', '7593', 'r', 5945, 2503, 9765, 8527], [1659, 'z', 7571, 'w', '9447', 'A', 'g', '4241', 'l', '6431', 'v', 'r', '1925', '1007', '8177', '5627', '7383', '691', 'Z', '7593', 's', 'f', 7387, 4583, 4393, 'o', 8185, 'Y', 3513]