Given the task definition and input, reply with output. In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

['x', 4059, 'l', '5627', 'w', 'Z'], [7125, 2369, 'l', '5627', 'N', 'X']

l, 5627