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

Input: Consider Input: ['U', 1887, '8423', 'j', '8053', 'g', '5441', 'H', 'j', 3847, 'd', 'J', 1971, 'M'], ['y', 'T', 'C', 'z', 6299, 5393, '8423', 'j', '8053', 'g', '5441', 'H', 'x', 'f', 4189, 'h', 'e', 6577]

Output: 8423, j, 8053, g, 5441, H


Input: Consider Input: [7319, 'V', 'f', 't', 'M', 'L'], [4655, 3353, 'f', 't', 'G', 1263]

Output: f, t


Input: Consider Input: ['f', 'L', 'k', '9117', '4243', '4931', 'i', 'I', 'M', 'B', 'z', 'q', 7463], [3593, 'U', 'E', 'I', 'g', 6981, 'k', '9117', '4243', '4931', 'i', 'I', 'O', 9877, 5643, 'r', 1223]


Output: k, 9117, 4243, 4931, i, I