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

Input: Consider Input: [2087, 5665, 'W', 'H', 6711, '8181', 'q', '1949', 'j', '7351', 'g', 5827, 4893, 9173], [5187, 4249, '8181', 'q', '1949', 'j', '7351', 'w', 'Z', 'C', 3255]

Output: 8181, q, 1949, j, 7351


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: ['V', 1311, 'T', 8527, 8891, 'A', 'q', 'z', '4837', '131', '1955', '7963', 'E', '5529', 'k', '7343', 'L', '11', 'h', '8403', '1199', 't', '6807', 'j', '8267', '5427', 'D', '451', '9177', 'L', 'p', 6985], ['R', 'G', 6311, 'M', 'E', 'J', 3707, 8969, 'g', 'U', 1133, 1937, 'p', 'i', 9813, 'c', 's', 8045, 4887, 271, 9309, 9941, 'B', 'q', 'z', '4837', '131', '1955', '7963', 'E', '5529', 'k', '7343', 'L', '11', 'h', '8403', '1199', 't', '6807', 'j', '8267', '5427', 'D', '451', '9177', 'L', 'i', 'e', 8687, 5717, 'p', 's', 'R', 'Y', 4489, 2263, 'U', 's', 'y', 1147]


Output: q, z, 4837, 131, 1955, 7963, E, 5529, k, 7343, L, 11, h, 8403, 1199, t, 6807, j, 8267, 5427, D, 451, 9177, L