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

Input: Consider Input: ['A', 'Y', 'B', 5539, 'i', 'u', 3953, 7153, '3019', '4737', 'Q', 'Z', '223', '7501', '1205', 'u', 'F', 'i', 4673, 5277, 2169, 'v'], [7917, 'p', 'K', 'D', 'S', 'U', 'w', '3019', '4737', 'Q', 'Z', '223', '7501', '1205', 'u', 'd', 8111, 'Q', 'b', 7059, 'L', 'u', 5107]

Output: 3019, 4737, Q, Z, 223, 7501, 1205, u


Input: Consider Input: [3119, 'a', 3299, 'R', 4993, 'Z', 3945, 2251, 'L', 'b', 'p', 9607, 'm', 'T', 'd', 'D', 3061, 7609, 'u', 'b', 'M', 'y', '573', '8299', '6699', '9529', '4279', '3041', '179', '9953', '9107', 'A', 'M', '4513', '4915', 'G', 'e', '5871', '8555', '6957', '1457', '9445', 'g', 'z', 'z', 'q', 'T', 'E', 'H', 6809, 1237, 6021, 'D', 'F', 8119, 1163, 'Q', 'D', 3223, 'D', 3125], ['q', 'y', 'T', 4457, 'I', 'v', 'T', 'o', 2925, 9225, 'h', 9875, 5479, 1831, 'z', 6931, 449, 7921, 7791, 2891, 4657, 'y', '573', '8299', '6699', '9529', '4279', '3041', '179', '9953', '9107', 'A', 'M', '4513', '4915', 'G', 'e', '5871', '8555', '6957', '1457', '9445', 'g', 'z', 'z', 'q', 'O', 'k', 2265, 5061, 'z', 'y', 'Q', 'J', 2665, 5157, 4675, 'D', 6509, 'Q', 177, 'w']

Output: y, 573, 8299, 6699, 9529, 4279, 3041, 179, 9953, 9107, A, M, 4513, 4915, G, e, 5871, 8555, 6957, 1457, 9445, g, z, z, q


Input: Consider Input: ['a', 'j', 'P', 8777, 'M', 1285, 8547, 'a', 1771, 6887, 'N', 'h', 899, 6835, 5589, 9267, 'a', 'T', 'h', 't', 8497, 8239, 'm', '7649', '3097', 'J', 'R', 'g', 'a', '6491', '4831', '1585', 'p', '3829', 'g', 'v', '5767', '3539', 'h', 'Z', 'k', 'x', 'O', 'C', '4683', 'a', '8639', '8643', 'T', '8399', 'P', 'C', 'p', 8879, 'E', 7043, 'w', 6241, 'A', 3801, 'k', 'P', 813, 8795], [3831, 'y', 'e', 'Z', 'Z', 'c', 'B', 'g', 7243, 'k', 1375, 'F', 8423, 7513, 'p', 9647, '7649', '3097', 'J', 'R', 'g', 'a', '6491', '4831', '1585', 'p', '3829', 'g', 'v', '5767', '3539', 'h', 'Z', 'k', 'x', 'O', 'C', '4683', 'a', '8639', '8643', 'T', '8399', 'P', 'C', 'P', 6065, 4113, 1185, 4111, 8049, 'c', 7489, 'g', 'F', 5325, 8325, 2779, 'o', 'n', 2969, 9173, 'i', 'V', 'l', 2773]


Output: 7649, 3097, J, R, g, a, 6491, 4831, 1585, p, 3829, g, v, 5767, 3539, h, Z, k, x, O, C, 4683, a, 8639, 8643, T, 8399, P, C