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

Input: Consider Input: ['p', 'C', 6777, 'P', 'd', 4619, 'l', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'U', 'C', 'G', 'm'], ['U', 5295, 'O', 'F', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'W', 'C', 'I', 'K', 5891]

Output: 4333, 9491, V, 5745, P, 9255, 9439, 8461, D, L, w, R


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: ['z', 7145, 'v', '2185', 'w', '9983', 'Q', '9747', 'k', 'q', 'c', 'F'], ['T', 'N', 'v', '2185', 'w', '9983', 'Q', '9747', 'k', 'q', 'Z', 7569, 'L', 'Z', 'H', 'y', 9547, 5693]


Output: v, 2185, w, 9983, Q, 9747, k, q