In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[373, 2809, 'g', 4205, 'T', 'X', '2797', 'T', 'B', '8025', '3657', 'U', 'x', 'J', 'u', 6679, 'Z'], [9593, 'y', 'i', 'q', 8223, 'k', 'z', '2797', 'T', 'B', '8025', '3657', 'U', 'x', 'M', 'X', 'P', 'f']