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

Input: Consider Input: [9875, 'g', 8729, 'h', 'F', 'v', 'v', 8307, 6379, 3165, 7055, 'f', 'p', 3707, 'P', 6305, 'h', '9891', '2783', 'D', '7567', '95', 'T', 'U', '2035', 'W', 'C', 'B', '9943', 'B', '9033', '6511', 'e', '2623', 'O', 'Z', 'k', 7761], [9061, 1241, 'd', 3917, 'm', 9457, 'n', 1493, 725, 'O', 'h', '9891', '2783', 'D', '7567', '95', 'T', 'U', '2035', 'W', 'C', 'B', '9943', 'B', '9033', '6511', 'e', '2623', 'O', 'Z', 'o', 'J', 'c', 6919, 'O', 'O', 8809, 'J', 'v', 'O', 4633, 941, 'z', 6667, 'X', 'C', 'd', 5189]

Output: h, 9891, 2783, D, 7567, 95, T, U, 2035, W, C, B, 9943, B, 9033, 6511, e, 2623, O, Z

Input: Consider Input: ['B', 'f', 'Y', 'r', 4391, 'B', '6995', '7077', 'p', '3191', 'M', 1379, 5473], [3689, 'g', 5189, 'w', 4837, 'B', '6995', '7077', 'p', '3191', 'B', 9145]

Output: B, 6995, 7077, p, 3191

Input: Consider Input: ['e', 'b', 633, 'J', '85', 'A', 's', '279', '607', 'w', 'M', 'V', 'n', '1695', '9939', '3079', '6777', 'P', 'l', 5831, 3519, 3159, 6729, 2275], [5569, 5227, 9609, 'j', 'C', 'V', 'e', 'H', 3951, 'I', 'o', 'B', '85', 'A', 's', '279', '607', 'w', 'M', 'V', 'n', '1695', '9939', '3079', '6777', 'P', 'Z', 'R', 'e']
Output: 85, A, s, 279, 607, w, M, V, n, 1695, 9939, 3079, 6777, P