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

Ex Input:
[4961, 'H', 9957, 'w', 'K', 'Y', 3375, 'S', '3191', '4439', 'C', '1965', '2787', '4507', 'y', 2753, 2989, 6093, 7091, 8043, 'c'], [9279, 'S', 6127, 5845, 237, 'S', '3191', '4439', 'C', '1965', '2787', '4507', 'w', 9497, 'K', 2297]

Ex Output:
S, 3191, 4439, C, 1965, 2787, 4507


Ex Input:
['L', 'B', 'j', 5005, 1135, 6853, '395', '4543', '2301', 'B', '9275', '7891', '9083', '5417', '7543', '8291', '2655', 'm', 'g', '7981', '5703', '1179', 'i', 9785, 't', 'G', 'r', 'w', 'B', 3093], ['z', 'm', 'J', '395', '4543', '2301', 'B', '9275', '7891', '9083', '5417', '7543', '8291', '2655', 'm', 'g', '7981', '5703', '1179', 'D', 5163, 4649, 6219, 3227, 6101, 'y', 'K', 'W', 2233, 'n']

Ex Output:
395, 4543, 2301, B, 9275, 7891, 9083, 5417, 7543, 8291, 2655, m, g, 7981, 5703, 1179


Ex Input:
[6669, 993, 2869, 9509, 8993, '879', 'F', '5007', 'z', '2983', '5427', 'r', '8807', 'B', '3877', 'N', '4805', 'g', 'g', '3835', 'C', 'A', 'r'], [3363, 4639, 6463, 4467, 'C', 1229, 5053, 197, '879', 'F', '5007', 'z', '2983', '5427', 'r', '8807', 'B', '3877', 'N', '4805', 'g', 'g', '3835', 'U', 'y', 8593, 'K', 5271, 6989, 'x', 'S', 623, 'e', 2235]

Ex Output:

879, F, 5007, z, 2983, 5427, r, 8807, B, 3877, N, 4805, g, g, 3835