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

Input: Consider Input: [273, 'i', 4051, 9063, 'D', 'E', 5087, 'M', '9959', '6273', 'p', 'L', 'B', 'H', '7889', '9933', 'p', '519', '339', 'h', 'u', 5559, 1733, 9555], ['i', 5977, 'r', 'b', 589, '9959', '6273', 'p', 'L', 'B', 'H', '7889', '9933', 'p', '519', '339', 'n', 'y', 'q']

Output: 9959, 6273, p, L, B, H, 7889, 9933, p, 519, 339

Input: Consider Input: ['u', 'U', 'a', 'Z', 'b', 'Q', 'D', 5239, 6595, 1793, 'f', '7733', '5727', '3047', '4951', '8907', 'D', '5105', 'i', '1837', 'i', 'Y', 'b', '5769', 'p', '1767', 'Y', 'B', 'q', '4075', '917', 'c', 'm', 867, 585, 1765], [5201, 'W', 'a', 'k', 9031, 4815, '7733', '5727', '3047', '4951', '8907', 'D', '5105', 'i', '1837', 'i', 'Y', 'b', '5769', 'p', '1767', 'Y', 'B', 'q', '4075', '917', 'c', 'X', 2991, 3377, 2933, 5359, 6073, 8921, 789, 'W', 7037, 9953, 'N', 8007, 1755, 1959, 9619]

Output: 7733, 5727, 3047, 4951, 8907, D, 5105, i, 1837, i, Y, b, 5769, p, 1767, Y, B, q, 4075, 917, c

Input: Consider Input: [6557, 'J', 5163, 1025, 2063, 'w', 4933, 'L', 8333, 'H', 1337, 'Z', 'L', 'S', 4079, 6377, 'F', '31', 'I', '4673', 'p', 'b', '5623', '7167', '2493', '6461', 'W', 'v', 'R', '7227', 'k', '5489', '3153', '5559', 'i', 'A', 'r', 3913, 'V', 7271, 'v', 7503, 7173, 'C', 'I', 'A', 769, 7709, 1841, 4019, 1255], [9553, 4779, 4623, 'm', 'C', 'i', 'f', 'W', 1481, 'R', 'G', 8873, 3679, '31', 'I', '4673', 'p', 'b', '5623', '7167', '2493', '6461', 'W', 'v', 'R', '7227', 'k', '5489', '3153', '5559', 'i', 'A', 'X', 't']
Output: 31, I, 4673, p, b, 5623, 7167, 2493, 6461, W, v, R, 7227, k, 5489, 3153, 5559, i, A