In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['R', 'g', 'i', 9271, 8243, 'J', '8587', '357', 'b', '6459', '5739', '3763', '5633', 'u', 'M', 769, 3239, 'h', 'm'], [2763, 'z', 'P', 'b', 639, 'i', 'J', '8587', '357', 'b', '6459', '5739', '3763', '5633', 'u', 'G', 9357, 'q', 'C', 'R', 7793, 'x', 'p', 'B']