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

Input: Consider Input: [8471, 8309, 'g', 'f', 5019, 'd', 8129, 'r', 'e', 'l', 'B', '7297', 'c', '2785', '919', 'B', '5459', 'L', 5985, 2953, 6897, 'n', 9209, 3281, 'w', 4011, 't'], ['g', 7529, 'q', 6213, 'c', 'l', 6053, 'r', 'e', 'l', 'B', '7297', 'c', '2785', '919', 'B', '5459', 'B', 2159, 7633, 8707]

Output: r, e, l, B, 7297, c, 2785, 919, B, 5459

Input: Consider Input: ['r', 'X', 7017, 'D', 2235, 'p', 'i', 3287, 'z', '9245', 'S', '8055', '1843', '147', '4353', '9543', '9247', '6361', '609', 'v', 'z', '4349', 'd', '6611', '5101', 'G', 'W', 4175, 5695, 'r', 9809, 8187, 'G'], [8989, 2959, 7907, 'F', 2481, 'Q', 9095, '9245', 'S', '8055', '1843', '147', '4353', '9543', '9247', '6361', '609', 'v', 'z', '4349', 'd', '6611', '5101', 'G', 'g', 5163, 'B', 2487, 'r', 'j', 'l', 293, 'Z']

Output: 9245, S, 8055, 1843, 147, 4353, 9543, 9247, 6361, 609, v, z, 4349, d, 6611, 5101, G

Input: Consider Input: [9365, 'x', 'P', 5387, 'l', 4815, 1805, 2999, 'F', 8623, 4035, 2291, 'V', 'K', 'J', 'P', 'O', 'G', 4867, 'Z', 'R', 6021, 'u', '3469', 'T', 'o', 'N', '5065', 'd', '2681', '7363', 'i', 'b', '9543', '9807', 'S', 'u', '765', 'h', 'V', '8513', 'M', '6403', '5541', '7521', 'G', '7107', 's', 'm', 'F', 'Y', 10007, 429, 6167, 4325, 2963, 5383, 3809, 'v', 1739, 4165, 'P', 9547, 'g', 'e', 829], ['m', 7219, 'Y', 3509, 'u', 9293, 1535, 'a', 8997, 'Z', 'q', 5631, 3915, 8333, 3731, 629, 7123, 1003, 'u', '3469', 'T', 'o', 'N', '5065', 'd', '2681', '7363', 'i', 'b', '9543', '9807', 'S', 'u', '765', 'h', 'V', '8513', 'M', '6403', '5541', '7521', 'G', '7107', 'q', 3931]
Output: u, 3469, T, o, N, 5065, d, 2681, 7363, i, b, 9543, 9807, S, u, 765, h, V, 8513, M, 6403, 5541, 7521, G, 7107