In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['V', 4795, 'B', 'S', '829', '6595', 'u', 6689, 145], [2675, 'Z', 2335, 'S', '829', '6595', 'h', 'X', 4061]