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

Input: Consider Input: ['C', 9451, 'a', 'c', '1879', '7201', 'H', '3431', 'u', 17], ['t', 37, '1879', '7201', 'H', '3431', 'X', 7267, 'Z']

Output: 1879, 7201, H, 3431


Input: Consider Input: [8769, 8805, 'W', 'a', 'l', '9061', 'b', 'A', 'D'], [3199, 'o', 'm', 'a', 'l', '9061', 'b', 'v', 'g']

Output: a, l, 9061, b


Input: Consider Input: ['U', 'k', 7845, 7399, 'y', '4977', 't', 'S', 'f', '5091', '4051', 'z', 'N', 8659, 'M'], [8975, 311, 'z', 433, 7939, 2743, 8009, 2137, 'y', '4977', 't', 'S', 'f', '5091', '4051', 'z', 'M', 1299, 'E', 295, 'k', 5315]


Output: y, 4977, t, S, f, 5091, 4051, z