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

Input: Consider Input: [5861, 'Z', 1225, '3813', '8297', 't', '9301', 'd', 9323, 825], [5491, 'a', '3813', '8297', 't', '9301', 'Y', 'L', 'j', 5005]

Output: 3813, 8297, t, 9301


Input: Consider Input: [1231, 'a', 9367, '155', 'r', '1473', '5679', '3161', 'L', 'e', 'b', 'm', '9427', '2001', '5293', '3487', 'K', '6467', 'S', 'e', 6603, 'm', 8145, 'L', 's', 1273, 9291, 'X'], [5773, 'D', 'W', 'F', 5987, 'D', 'H', 2095, 'I', 'X', 29, '155', 'r', '1473', '5679', '3161', 'L', 'e', 'b', 'm', '9427', '2001', '5293', '3487', 'K', '6467', 'S', 'C', 'a']

Output: 155, r, 1473, 5679, 3161, L, e, b, m, 9427, 2001, 5293, 3487, K, 6467, S


Input: Consider Input: ['c', 'F', 8907, 9057, 'G', 'V', 889, '2325', 'v', '1197', 'P', '559', 'v', '5733', 'L', '5855', 'n', 'F', 'u', 'F', 9871, 6827, 6067, 'g', 6425, 'b', 7631, 'i', 'F'], ['q', 4117, 8989, '2325', 'v', '1197', 'P', '559', 'v', '5733', 'L', '5855', 'n', 'F', 'u', 'N', 'u', 'Y', 8257, 'k', 'l', 'T', 9433, 'f']


Output: 2325, v, 1197, P, 559, v, 5733, L, 5855, n, F, u