In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4629, 'U', 4405, 'm', 8339, 241, 'q', 'h', 4147, 2873, 767, '6107', 'C', '7627', 'r', '8643', '799', 'j', 'G', 'E', '3823', '8533', '3049', 'T', 4147, 5023, 'H', 'J', 8685, 'L', 'h'], [5895, 3283, 8197, 'g', '6107', 'C', '7627', 'r', '8643', '799', 'j', 'G', 'E', '3823', '8533', '3049', 'w', 6231, 4693, 'F', 7251, 2955, 'H', 'J', 4557]