In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6053, 'g', 6839, 323, 1739, 'p', 'A', 'g', '1279', 'e', 'x', '4535', '2643', 'M', '9011', 'k', 'W', 8265, 'q', 8507, 4703, 'S', 'q'], [2629, 8307, 'E', 4557, 9781, 'f', 1881, 'm', 'g', '1279', 'e', 'x', '4535', '2643', 'M', '9011', 'g', 'f']