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

Ex Input:
['j', 'Q', 2919, 2195, 'P', 'H', 'r', 'P', 5051, 'Y', 'W', 8151, 3411, 'L', 'v', 'k', 5531, 'm', '789', '421', '5807', '3707', 'h', '4147', 'G', '4797', 'm', 'v', '151', '5001', 'r', '2637', '9981', '4791', 'G', '5173', '5059', 'O', '4437', 'X', 'R', 'g', '1989', 'q', 'i', 'R', 1973, 'm', 3695, 'I', 7909, 'q', 2515, 7659, 'n', 'M', 2121, 4117, 'J', 'Y', 9869, 5551, 8069, 7393, 'Q', 'z', 5551, 'B', 's'], ['W', 9301, 'y', 2707, 5039, 1905, 1657, 'A', 7213, 1975, 9875, 8915, 'R', 1127, 1599, 1615, 2069, 'B', 5781, 'v', 127, 435, 9967, 'r', 'm', '789', '421', '5807', '3707', 'h', '4147', 'G', '4797', 'm', 'v', '151', '5001', 'r', '2637', '9981', '4791', 'G', '5173', '5059', 'O', '4437', 'X', 'R', 'g', '1989', 'X', 'O', 7793, 'Z', 'u', 3029]

Ex Output:
m, 789, 421, 5807, 3707, h, 4147, G, 4797, m, v, 151, 5001, r, 2637, 9981, 4791, G, 5173, 5059, O, 4437, X, R, g, 1989


Ex Input:
[1875, 'T', 'Y', '5527', 'F', 'y', '5669', 'm', 'k', 2655, 8089], [3997, 7707, 9937, 'M', '5527', 'F', 'y', '5669', 'm', 'a', 'e']

Ex Output:
5527, F, y, 5669, m


Ex Input:
['Y', 'b', 7651, 165, 'v', 3073, 'j', 'r', 937, 5407, 8543, 'U', 2045, 959, 'W', 'L', 'l', '9785', 'Q', '1315', '6159', 'B', 'w', '5435', '5657', '1451', 'P', 'm', 'J', '753', '5881', '8233', 'n', '469', '9617', 'Z', 3485, 7433, 'N', 'E', 2685], ['Y', 'u', 987, 'A', 177, 2741, 'C', 6955, 'c', 3115, 7003, 'G', 'I', '9785', 'Q', '1315', '6159', 'B', 'w', '5435', '5657', '1451', 'P', 'm', 'J', '753', '5881', '8233', 'n', '469', '9617', 'L', 'k', 3959, 'J', 'n', 'l', 'x', 'o', 6637, 6433, 'r', 'b', 6097, 'Y', 2169, 4251]

Ex Output:

9785, Q, 1315, 6159, B, w, 5435, 5657, 1451, P, m, J, 753, 5881, 8233, n, 469, 9617