In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['z', 6581, 'a', 4421, 8229, 9897, 6891, 'F', 's', '8363', 'v', 'E', 'Y', '417', '5943', '4991', 'a', 'J', 'J', 2767, 8891], ['S', 'a', 8167, 'j', 'R', 's', '8363', 'v', 'E', 'Y', '417', '5943', '4991', 'k', 4325, 'z', 7013, 5917, 'Q']