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', 'Z', 8573, 'o', 'D', 'J', 5037, 2641, 'O', 'T', '9477', 'u', 'n', 'x', '693', 'o', 'l', '9113', '3117', '3743', '1889', 'G', 'P', 6189, 7671, 5677], ['P', 1411, 'O', 'T', '9477', 'u', 'n', 'x', '693', 'o', 'l', '9113', '3117', '3743', '1889', 'P', 'K', 'l', 'U', 2505, 3803, 9459, 'H', 1427, 1453, 'g']

Output: O, T, 9477, u, n, x, 693, o, l, 9113, 3117, 3743, 1889

Input: Consider Input: [5071, 3641, 'a', 'n', 4549, 'K', '6783', 'P', '5113', '9801', '4323', 'u', '4227', 'G', 'J', '5259', 't', 'G', 'L', 3179, 10017, 'p', 1633, 3951, 3277, 'c'], ['k', 3793, 'G', 'z', 'F', 3735, 595, 'c', '6783', 'P', '5113', '9801', '4323', 'u', '4227', 'G', 'J', '5259', 'f', 'u', 9709, 6341, 'N', 'F', 'G', 5533]

Output: 6783, P, 5113, 9801, 4323, u, 4227, G, J, 5259

Input: Consider Input: ['g', 4157, 'I', 's', 6617, 57, 'U', '9395', '6413', 'P', 'E', '9167', 'l', '8433', 'G', 'H', 5771, 4205], [3297, 1889, 'w', 'V', 'U', 'U', '9395', '6413', 'P', 'E', '9167', 'l', '8433', 'c', 3817, 6117, 'y', 'B', 9719]
Output: U, 9395, 6413, P, E, 9167, l, 8433