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

Input: Consider Input: ['S', 'd', 'z', 2305, '2731', 'W', '5987', '4043', 'w', 'v', 'S', 'v', '1143', '1725', '9073', '4411', '9321', '1213', '3111', '2527', 'U', 'U', 'y', 'N', 'n', 6769], ['Q', 'T', 'n', 1267, 5099, 57, 4739, 295, 8099, 'n', '2731', 'W', '5987', '4043', 'w', 'v', 'S', 'v', '1143', '1725', '9073', '4411', '9321', '1213', '3111', '2527', 'U', 'K', 'n', 'N', 'b', 3941, 3443, 'A', 7927, 'g', 'h']

Output: 2731, W, 5987, 4043, w, v, S, v, 1143, 1725, 9073, 4411, 9321, 1213, 3111, 2527, U


Input: Consider Input: ['y', 'b', 'A', 'K', 887, '9169', '1575', '5233', '1749', '5739', 'A', 'V', 8989], [3381, 5213, 9463, 8631, 2091, '9169', '1575', '5233', '1749', '5739', 'h', 1679, 8181]

Output: 9169, 1575, 5233, 1749, 5739


Input: Consider Input: ['c', 'B', 4023, 8453, 8601, 'd', 3971, 'm', '2739', 'H', '2393', 'a', 'D', '1885', '8971', '3755', '3885', '1493', '8133', 'Y', 2363, 6749, 'h', 9167, 'A', 'o', 9501, 5873, 'n', 'h', 3473], ['V', 'm', 'c', 5747, 'p', 'm', '2739', 'H', '2393', 'a', 'D', '1885', '8971', '3755', '3885', '1493', '8133', 'L', 'G', 8335, 'o', 6501, 'a', 921, 'Z', 3829, 7705, 5037, 1457]


Output: m, 2739, H, 2393, a, D, 1885, 8971, 3755, 3885, 1493, 8133