In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['u', 8723, 'o', '7743', 'o', '5609', '9069', 'S', 'a', '295', 'T', 2817, 2851, 8955, 'x'], ['h', 'P', 4857, 5357, 'o', '7743', 'o', '5609', '9069', 'S', 'a', '295', 'a', 'Y', 'i', 6591, 9013, 9037, 'f', 'm']