In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4231, 'E', 'P', 1875, 4517, 'w', 8597, 'F', 'B', '909', 'H', 'x', '8191', 'z', 'f', '6419', 'H', 'W', 3347, 'V'], [5981, 'b', 'B', '909', 'H', 'x', '8191', 'z', 'f', '6419', 'd', 8947, 7261, 5153, 'V']