In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[501, 'L', 'G', 'x', 5581, 'G', 8909, 't', 6837, 6247, 'b', 8189, 2333, 6049, 'l', 'f', 'K', '6003', 'N', 'X', 'K', 'R', '5005', 'W', 'C', 'B', 'w', 'd', 'L', '6333', 'J', '247', 'y', 'W', 8267, 'C', 'Q', 'h', 'H', 'm', 6055, 7799, 'a', 'l', 'g'], ['S', 'c', 2801, 'S', 2371, 6227, 5849, 't', 'z', 'f', 'K', '6003', 'N', 'X', 'K', 'R', '5005', 'W', 'C', 'B', 'w', 'd', 'L', '6333', 'J', '247', 'y', 'F', 6539, 'q', 4869, 5579, 'B', 1035, 9831, 1285, 4655, 2237]