In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3921, 71, 5861, 'm', 'E', '1083', '3797', 'e', '2617', 'j', '6345', 'U', '51', 'J', '2221', 'F', 'O', 'o', 7967, 'q', 2307, 'P', 'B'], ['J', 'F', 'b', 5729, 'w', 3669, 5741, 'C', 'U', 9115, 'E', '1083', '3797', 'e', '2617', 'j', '6345', 'U', '51', 'J', '2221', 'F', 'O', 'K', 2541, 5479, 'c', 'i', 'i', 1235, 8585, 5221, 'h', 6543, 3247, 9397]