In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8371, 4477, 'J', '9003', 'r', 'b', 'p', 'X', '47', 'z', '9571', 'h', 'c', '9611', 'Q', '4593', '7869', 'c', '6391', '7171', 'T', 'G', '2477', '2307', '7379', '9569', 'f', 'r', 679, 'I', 6621, 'X', 'O', 2745], ['v', 3297, 'g', 3485, 6665, 'l', 'l', 'v', 'L', 5245, 9271, 'c', 'V', 'B', 1807, 9211, 7319, 1591, 4909, 4007, 6319, 8435, 'J', '9003', 'r', 'b', 'p', 'X', '47', 'z', '9571', 'h', 'c', '9611', 'Q', '4593', '7869', 'c', '6391', '7171', 'T', 'G', '2477', '2307', '7379', '9569', 'f', 'Z', 'E', 'p', 'P', 1869, 'j', 8195]