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

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: ['c', 'G', 8225, 6329, '6291', '5279', 'n', 'A', 'J', 'n', 5221, 'r', 't'], ['k', 'M', 'Z', 'B', 4003, '6291', '5279', 'n', 'A', 'J', 'g', 'm']

Output: 6291, 5279, n, A, J


Input: Consider Input: [5521, 1069, 'O', 'C', '2617', '2939', 'J', 'B', 'H', 'N', 2117, 'x', 'P', 'W', 5259], ['b', 4317, 2659, 'H', 9681, 'C', '2617', '2939', 'J', 'B', 'H', 'J', 7807]


Output: C, 2617, 2939, J, B, H