In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2051, 2397, 'e', 'l', 'U', 'p', '969', 'F', 'F', 'B', 'w', '3745', '4115', 'z', 2569, 'A', 'F', 'q', 1871], ['U', 'v', 'w', 'p', 'o', 'p', '969', 'F', 'F', 'B', 'w', '3745', '4115', 'F', 9025, 'Q', 2679, 't', 'M']