In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[969, 507, 1485, 'O', 'w', 9717, 'o', 'P', '3001', 'S', 'z', '6615', 'A', '949', '3687', 'x', 'a', 'D', 5319], [3479, 'J', 'J', 7971, 'P', '3001', 'S', 'z', '6615', 'A', '949', '3687', 'x', 'O', 'Q', 'F', 6217, 'a', 573, 1725, 7475, 'E']