In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['a', 9255, 9403, 'X', '5185', '7073', 'C', '6365', '627', '6043', 't', 'm', '4273', 'f', 8149], ['m', 'U', 'Y', 3099, 'g', 2265, 'I', 'g', 'b', '5185', '7073', 'C', '6365', '627', '6043', 't', 'm', '4273', 'E', 905, 7047, 'c', 'd']