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

Input: Consider Input: [5625, 6017, 'd', 'p', '4423', '77', 'E', '5271', 'A', 1553, 'c'], ['U', 1615, 'u', 'd', 'p', '4423', '77', 'E', '5271', 'x', 'w', 'Y']

Output: d, p, 4423, 77, E, 5271


Input: Consider Input: ['Q', 4345, 'U', 6921, 'y', 57, 8287, 8385, 'O', '3359', 'S', '7355', '2263', 'd', 'd', 'i', 't', 'E', 'X', 'V', 2801], [3259, 'S', 'e', 'n', 'c', 'B', 'O', 217, 'O', '3359', 'S', '7355', '2263', 'd', 'd', 'i', 't', 'E', 'j', 'I', 5767, 'X', 8283, 8895, 'd', 8329]

Output: O, 3359, S, 7355, 2263, d, d, i, t, E


Input: Consider Input: ['j', 'A', 't', 6051, 'E', 'D', '497', 's', '1329', '5049', '3675', 'Q', 'W', 4825, 'J', 'g'], ['h', 'k', 153, '497', 's', '1329', '5049', '3675', 'Q', 'j', 's']


Output: 497, s, 1329, 5049, 3675, Q