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

Input: Consider Input: [4931, 5661, 8651, 'l', 'd', '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'K', 2179, 5747, 'C'], [3737, 7345, 3921, 'i', 9199, 3269, '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'A', 'd', 185, 'M']

Output: 9585, r, U, z, 6511, 9443, 2917


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

Output: f, t


Input: Consider Input: ['J', 'a', '1355', '3877', 'm', 'D'], ['f', 'U', '1355', '3877', 'g', 2321]


Output: 1355, 3877