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

Input: Consider Input: [1951, 'Y', 'v', 5955, 75, 'e', 9911, 3885, 335, 'L', 7871, 'z', 'l', 1047, 7915, 'D', 5831, '3495', 'a', 'i', '2657', 'R', 'P', 'N', 'K', '3765', '9331', '7357', 't', 'p', '6279', 'p', '4009', 'T', 'm', 'R', 'z', '1461', '31', '8689', '8807', '7225', '6421', 'r', '2115', 'k', 6911, 6063, 4091, 'z', 2951, 'v', 'n', 'a', 'N', 2063, 'o', 'V', 149, 'k', 6117, 7805], ['G', 8737, 1265, 'B', 'Y', 'f', 2407, 2383, 3405, 'u', 'M', 'g', 3985, 9783, 'V', 1525, '3495', 'a', 'i', '2657', 'R', 'P', 'N', 'K', '3765', '9331', '7357', 't', 'p', '6279', 'p', '4009', 'T', 'm', 'R', 'z', '1461', '31', '8689', '8807', '7225', '6421', 'r', '2115', 'E', 'c', 2823, 2777, 'S', 'f', 't', 's', 'N', 'P', 5597, 'R', 'W', 699, 'f', 'p', 7843, 'y', 3875, 7057, 'u', 'E', 'D']

Output: 3495, a, i, 2657, R, P, N, K, 3765, 9331, 7357, t, p, 6279, p, 4009, T, m, R, z, 1461, 31, 8689, 8807, 7225, 6421, r, 2115


Input: Consider Input: ['Y', 'z', 5335, 'X', 3843, 'D', 4457, 2327, 'V', 7231, 'y', 4551, 'W', 9241, '7147', '6713', '9717', '8795', '3161', 'V', '1129', '2943', '9809', 'a', '3273', 'y', 'R', 'M', 'g', 'E', 'D', 'd', 'x', 5331, 7187, 'J', 3839, 't'], [1485, 'f', 8207, 5859, 'D', 'k', 't', 'r', 'z', 613, 9091, 4893, 5755, '7147', '6713', '9717', '8795', '3161', 'V', '1129', '2943', '9809', 'a', '3273', 'y', 'R', 'M', 'Q', 5331, 'c', 3531, 6477, 'a']

Output: 7147, 6713, 9717, 8795, 3161, V, 1129, 2943, 9809, a, 3273, y, R, M


Input: Consider Input: [259, 'c', 'v', 'v', 7141, 'u', 'v', 'V', 1943, 'p', 'Y', 3159, 'V', 'U', '8517', 'R', 'b', 'E', 'W', '5639', '3055', 'M', '4365', 'J', 'O', 'G', '9365', '3653', 'D', 8515, 'C', 7365, 3157, 'n', 9813, 2183, 7383], ['G', 4087, 'U', 9731, 235, 'M', 'V', 9909, 'g', 'U', '8517', 'R', 'b', 'E', 'W', '5639', '3055', 'M', '4365', 'J', 'O', 'G', '9365', '3653', 'u', 1479, 'N', 3865, 9305, 4705, 6987, 'k', 8223, 5903, 8725, 7707, 'D', 'f']


Output: U, 8517, R, b, E, W, 5639, 3055, M, 4365, J, O, G, 9365, 3653