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

Input: Consider Input: [5225, 'L', 1023, 8623, 'k', 'f', '1481', 'e', 'm', '4013', 'l', '831', 'n', '3137', 'b', 517], [1243, 't', '1481', 'e', 'm', '4013', 'l', '831', 'n', '3137', 'x', 5545, 's', 'a']

Output: 1481, e, m, 4013, l, 831, n, 3137


Input: Consider Input: [6507, 8623, 6879, '1327', '6971', 'd', 'A', 3663, 7831], [1711, 4751, 3479, '1327', '6971', 'd', 'u', 1771]

Output: 1327, 6971, d


Input: Consider Input: ['e', 'd', 'B', 4323, 6433, 4079, 'c', 'k', 9671, 'd', 'Q', 2361, '409', '3799', '8741', 'j', '5051', '8229', 'h', '23', 'A', 'i', '3997', '9427', 'n', 'q', 'P', 'w', 'b', '7965', '9141', '4505', '3869', 's', '9253', '7507', 'h', 'Z', 'e', 3927, 'v', 'D', 4575, 'S'], [3799, 'H', 'j', 2975, 'K', '409', '3799', '8741', 'j', '5051', '8229', 'h', '23', 'A', 'i', '3997', '9427', 'n', 'q', 'P', 'w', 'b', '7965', '9141', '4505', '3869', 's', '9253', '7507', 'h', 'Z', 'x', 'q', 'q', 609, 'P', 6111, 'u', 4887, 'i']


Output: 409, 3799, 8741, j, 5051, 8229, h, 23, A, i, 3997, 9427, n, q, P, w, b, 7965, 9141, 4505, 3869, s, 9253, 7507, h, Z