In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 5315, 'l', 1691, 7109, 'm', '6501', '9339', 'h', '701', '7217', '9679', 'r', '7417', '4289', '7857', '5967', 'G', 'C', 'P', 'M', 'b', '5827', '3249', 'X', 'g', 4261, 5003, 'f', 8521, 'H', 3271, 6027, 3165, 9891, 'F', 'm', 'k', 1873], ['a', 'n', 'O', 'Q', 'S', 'y', 8845, 'm', '6501', '9339', 'h', '701', '7217', '9679', 'r', '7417', '4289', '7857', '5967', 'G', 'C', 'P', 'M', 'b', '5827', '3249', 'R', 8169, 'Z', 'c', 'x']