In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7027, 'm', 329, '8507', '3149', '7237', 'M', 'h', 'h', 'K'], [4557, 6039, 'U', 641, 'e', '8507', '3149', '7237', 'M', 'h', 'g', 'Z', 'c']