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

Input: Consider Input: ['I', 583, 4045, 't', 'N', 'H', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'R', 'i', 493, 2571, 7837], ['E', 3649, 'M', 7321, 8477, 1609, 'p', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'j', 4719, 'u', 'F', 'U', 'P', 'c', 3121, 'u', 6871, 'T']

Output: 1017, u, 7255, 8583, M, x, 143, e, l, U, S, 791, a, 6927, 3887


Input: Consider Input: ['N', 1775, 't', 385, 1349, 'T', 'E', 'u', 5647, 't', 'd', 'I', 'r', 'f', '6045', 'U', '9023', '9857', 'R', 'Y', 'w', 'P', '7089', '9679', '1507', 'S', '6815', 'Y', 'c', 'H', 'I', 'Q', 'Y', 'M', 7789, 'J', 'I', 4813, 6533, 1745, 'y', 4711, 'E', 'F', 5191, 's', 6979], ['W', 'F', 2799, 'I', 'r', 'f', '6045', 'U', '9023', '9857', 'R', 'Y', 'w', 'P', '7089', '9679', '1507', 'S', '6815', 'Y', 'c', 'H', 'I', 'Y', 'k', 6395, 'L', 5747, 'l', 4081, 'v', 3129, 7249, 375, 4575, 4725, 'R', 'A', 4761, 3217, 5203, 'E', 'T']

Output: I, r, f, 6045, U, 9023, 9857, R, Y, w, P, 7089, 9679, 1507, S, 6815, Y, c, H, I


Input: Consider Input: [8039, 4457, 'z', 3519, 'q', 'T', 'k', 'b', 'H', 'W', 'H', '5561', '1389', '6389', '6923', '339', 'Q', '5837', 'D', 'z', 'F', '4743', '7197', '1407', '9711', '4355', '4027', '2219', 'w', 'S', 'Z', 'f', '4091', '2571', 'd', 1527, 'o', 1393, 't', 7653], ['g', 2437, 'm', 'b', 2347, 'Q', 6719, 2049, 6643, 'B', 6919, 1873, 'K', 9319, 6729, 'Z', 'E', 8011, 7953, 'M', 1121, 'k', '5561', '1389', '6389', '6923', '339', 'Q', '5837', 'D', 'z', 'F', '4743', '7197', '1407', '9711', '4355', '4027', '2219', 'w', 'S', 'Z', 'f', '4091', '2571', 'o', 1481, 867, 'B', 29]


Output: 5561, 1389, 6389, 6923, 339, Q, 5837, D, z, F, 4743, 7197, 1407, 9711, 4355, 4027, 2219, w, S, Z, f, 4091, 2571