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

Input: Consider Input: [4717, 'J', 'B', 'f', 'a', 9035, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'F', 5099], ['Q', 3557, 'y', 2689, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'k', 8835, 'C', 8979]

Output: 3041, 491, 3395, 3117, 4793, 4305, c


Input: Consider Input: ['A', 'Y', 'B', 5539, 'i', 'u', 3953, 7153, '3019', '4737', 'Q', 'Z', '223', '7501', '1205', 'u', 'F', 'i', 4673, 5277, 2169, 'v'], [7917, 'p', 'K', 'D', 'S', 'U', 'w', '3019', '4737', 'Q', 'Z', '223', '7501', '1205', 'u', 'd', 8111, 'Q', 'b', 7059, 'L', 'u', 5107]

Output: 3019, 4737, Q, Z, 223, 7501, 1205, u


Input: Consider Input: ['f', 'A', '289', 'r', 'e', '6975', '919', '1563', 'k', 'Q', 'm', 9251, 6313, 1003], ['W', 'k', '289', 'r', 'e', '6975', '919', '1563', 'k', 'Q', 'r', 'f']


Output: 289, r, e, 6975, 919, 1563, k, Q