In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 'P', 1535, 8291, 'c', 7063, 'c', 4057, 5051, 9671, 2713, 'p', 'E', 1859, 'q', 1217, '9865', '7151', 'U', '9425', '2259', '7127', 'g', 'i', '3087', 'V', 'w', 'b', 'r', '3233', 'G', '1499', '1275', '4147', '4151', 'O', 'O', 'r', 3677, 9431, 5043, 917, 'B'], [2409, 2879, 5225, 'f', 829, 6791, 5409, 'n', 8963, 'B', 'f', '9865', '7151', 'U', '9425', '2259', '7127', 'g', 'i', '3087', 'V', 'w', 'b', 'r', '3233', 'G', '1499', '1275', '4147', '4151', 'O', 'O', 'O', 8095, 9551, 'f']