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

Input: Consider Input: ['w', 3897, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'P', 'C', 'z', 5141, 1751, 6731, 'r'], ['B', 8071, 703, 'G', 885, 'Z', 2391, 1749, 4177, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'D', 8751, 'y', 2941]

Output: U, a, 455, 6499, 8975, 9003, O, j, T

Input: Consider Input: [9577, 'v', 2595, 7901, 5205, 'Z', 2647, 'm', 't', 'h', '6209', '6325', 'B', '8879', '1137', '7837', '1819', 'S', '2249', 'i', 'L', '3729', 'i', 9823, 5731, 'd', 'u', 1461, 'Z', 9415, 541, 'T', 'A', 'G', 7275], [9731, 4061, 'V', 'k', 9589, 'v', 'k', 7917, 'x', 'B', 'z', 31, 'K', 'h', '6209', '6325', 'B', '8879', '1137', '7837', '1819', 'S', '2249', 'i', 'L', '3729', 'n', 'J', 'g', 8859, 195, 'l']

Output: h, 6209, 6325, B, 8879, 1137, 7837, 1819, S, 2249, i, L, 3729

Input: Consider Input: [5521, 1069, 'O', 'C', '2617', '2939', 'J', 'B', 'H', 'N', 2117, 'x', 'P', 'W', 5259], ['b', 4317, 2659, 'H', 9681, 'C', '2617', '2939', 'J', 'B', 'H', 'J', 7807]
Output: C, 2617, 2939, J, B, H