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

Input: Consider Input: ['h', 'L', 2481, 8463, 1309, '7587', '521', 'a', '1617', '5245', '5629', '9977', 'o', 'I', 4133, 't', 'i'], ['P', 5497, '7587', '521', 'a', '1617', '5245', '5629', '9977', 'I', 2251, 'p', 's', 'n', 'k', 8259]

Output: 7587, 521, a, 1617, 5245, 5629, 9977

Input: Consider Input: [2945, 6951, 2771, 'k', 'G', '7377', 'd', 'a', 'p', 'J', 'c', 'R', '6641', 'a', '2235', '3033', '3189', '7299', 'h', 'T', '5111', 'k', 'd', 4197, 'j', 'p', 'z', 1911, 'w', 6663, 7993, 5973, 3193, 7387, 'h', 'e', 8663, 2715], ['U', 'a', 'f', 7179, 7859, 'C', 6081, 2069, 3459, 'm', 'w', 'k', 'q', 'k', 'G', '7377', 'd', 'a', 'p', 'J', 'c', 'R', '6641', 'a', '2235', '3033', '3189', '7299', 'h', 'T', '5111', 'k', 'e', 'v', 'f', 5943, 8771, 'K', 'i', 'c', 'x', 7745, 'F', 'x', 3855, 'S', 5113, 1205]

Output: k, G, 7377, d, a, p, J, c, R, 6641, a, 2235, 3033, 3189, 7299, h, T, 5111, k

Input: Consider Input: [4779, 'v', 8093, 1429, 3779, 'R', 1615, 'R', 'E', 8083, 5165, 'P', 979, 2315, 'r', 'h', 't', '5997', 'f', 'd', 'y', 'd', '2017', 'C', 'j', 'R', 'O', '1227', 'D', 'F', '6243', 'y', 'w', '6501', 'z', 'N', 'w', 'h', 4701, 5929, 7935, 3617, 6793, 'q', 4205, 1837, 'u', 2101], ['l', 3497, 1255, 957, 5685, 'i', 'B', 'r', 'h', 't', '5997', 'f', 'd', 'y', 'd', '2017', 'C', 'j', 'R', 'O', '1227', 'D', 'F', '6243', 'y', 'w', '6501', 'z', 'N', 'w', 'o', 6879, 'V', 2553, 6713, 1509, 3513, 7215, 's', 17]
Output: r, h, t, 5997, f, d, y, d, 2017, C, j, R, O, 1227, D, F, 6243, y, w, 6501, z, N, w