In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['x', 'f', 2879, 'd', 'O', 3499, '2217', 'F', 'h', '5991', 'i', '8099', '4597', 'Y', 'D', 'G', 'K', 'X', 'L', '6339', '5617', '5111', 'F', '8659', '7691', '3849', '4141', '8549', 'h', 'r', 3579, 5565, 8099, 3431, 7629, 'L', 'v', 7151, 3789, 'S', 4903], ['z', 6709, 'W', 'w', 7383, 2805, 'Q', 'r', 'l', 'o', '2217', 'F', 'h', '5991', 'i', '8099', '4597', 'Y', 'D', 'G', 'K', 'X', 'L', '6339', '5617', '5111', 'F', '8659', '7691', '3849', '4141', '8549', 'a', 'A', 'o', 2507]