In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3017, 6339, 9137, 'F', 1501, 'g', 3805, 'f', 'j', '1035', '2459', 'd', '2105', '3175', '377', '5289', '8543', 'g', 'i', 'i', 'X', '3077', '985', '9159', '3519', 'o', '4645', '5585', 'i', 'T', 'm', 'i', 'E', 'A', 'q', 9331, 2707, 'd', 2347, 'E', 975, 'g'], ['A', 1647, 8419, 'W', 'u', 'N', 'E', 2997, 2717, 485, 7733, 3607, 6299, 'L', 'T', 'z', 733, 'j', '1035', '2459', 'd', '2105', '3175', '377', '5289', '8543', 'g', 'i', 'i', 'X', '3077', '985', '9159', '3519', 'o', '4645', '5585', 'i', 'c', 'i', 6161, 'u', 3625, 3785, 9349, 'N', 6495, 'r', 253, 'p', 'R']