In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6717, 'B', 'r', 'm', 'K', 2545, 499, 'S', 1227, 9491, 4653, 'o', 'a', 5731, 'E', 3429, 881, 8069, 'g', 'w', 335, 'Y', 'B', 4391, 'i', 'e', '8585', 'J', 's', 'r', '5831', '2323', 'C', '5471', 'A', 'b', '9125', '2061', 's', '4723', '67', 'm', 'M', 'L', '8757', '2529', '829', '4111', '8007', 'E', 'x', 'P', 767, 'O'], ['w', 4269, 'n', 8149, 'q', 'i', 'e', '8585', 'J', 's', 'r', '5831', '2323', 'C', '5471', 'A', 'b', '9125', '2061', 's', '4723', '67', 'm', 'M', 'L', '8757', '2529', '829', '4111', '8007', 'E', 'x', 'M', 6785, 7593, 'u', 5173, 4101, 9503, 6581, 3819, 2841, 'P', 2877, 'd', 4763, 413, 'N', 2851]