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

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: ['W', 'Y', 'y', 'A', 'm', '6915', '3285', 'd', '1035', 'H', 'J', '7549', 'P', '5301', 'q', '4057', 'H', '5697', 'H', '5141', 'H', 2451, 'x', 3307, 'A', 7121, 'b', 3319], ['M', 'L', 5827, 'I', 'r', 'f', '6915', '3285', 'd', '1035', 'H', 'J', '7549', 'P', '5301', 'q', '4057', 'H', '5697', 'H', '5141', 'N', 3371, 691]

Output: 6915, 3285, d, 1035, H, J, 7549, P, 5301, q, 4057, H, 5697, H, 5141


Input: Consider Input: [7525, 9929, 2167, '9393', '2703', '1833', 'k', '8675', '8363', '2321', '9209', 'l', '3387', '5841', '1597', 'w', 'J', 987, 671, 'Y', 3415, 9871, 1431], ['A', 'd', 5153, 7383, 'P', 5147, 'a', 7271, 775, 'I', '9393', '2703', '1833', 'k', '8675', '8363', '2321', '9209', 'l', '3387', '5841', '1597', 'U', 5177, 2641, 'o', 589, 'M', 'V', 651]


Output: 9393, 2703, 1833, k, 8675, 8363, 2321, 9209, l, 3387, 5841, 1597