In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2525, 499, 'G', 1547, 'n', 'J', '2529', 'u', '5265', 'q', 'n', '4573', 'T', '5281', 'T', 'b', 'u', 'G', 'x', 'O', 8267, 711, 'H', 3533, 5165], ['E', 7485, 'S', '2529', 'u', '5265', 'q', 'n', '4573', 'T', '5281', 'T', 'b', 'u', 'G', 'x', 'S', 'm', 'Y', 'y', 8001, 7185, 'E', 'f', 7891, 3859, 1089, 'l', 'h']