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

Input: Consider Input: [5625, 6017, 'd', 'p', '4423', '77', 'E', '5271', 'A', 1553, 'c'], ['U', 1615, 'u', 'd', 'p', '4423', '77', 'E', '5271', 'x', 'w', 'Y']

Output: d, p, 4423, 77, E, 5271


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: [4689, 8059, 'h', 'V', 'k', 'P'], ['k', 1647, 'h', 'V', 'D', 'R']


Output: h, V