In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['O', 1797, 'Y', 'm', '5521', '8971', '1021', '4351', '5497', 'M', '265', '219', '8203', '661', '3407', 'Q', 'A', 'n', 'r', 5275, 5227, 'l'], [8499, 'C', 'X', 'O', 965, 4053, 5705, 1325, 'm', '5521', '8971', '1021', '4351', '5497', 'M', '265', '219', '8203', '661', '3407', 'Q', 'A', 'm', 8845, 1349, 'a', 'l', 9063, 'c', 'u', 1999, 'w']