In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Input: Consider Input: ['y', 'b', 'A', 'K', 887, '9169', '1575', '5233', '1749', '5739', 'A', 'V', 8989], [3381, 5213, 9463, 8631, 2091, '9169', '1575', '5233', '1749', '5739', 'h', 1679, 8181]

Output: 9169, 1575, 5233, 1749, 5739


Input: Consider Input: ['i', 'n', '7509', '7241', 'V', 'k', 205, 'H'], ['s', 4349, 7023, '7509', '7241', 'V', 'O', 't', 9237]

Output: 7509, 7241, V


Input: Consider Input: ['H', 3101, 4211, 'V', '8257', 'X', '10021', 'p', 'a', 'p', 8913, 'k'], [9129, 8299, '8257', 'X', '10021', 'p', 'L', 8703]


Output: 8257, X, 10021, p