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

Ex Input:
['i', 4077, 'Z', 6231, 2337, 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'd', 1355, 'n'], [505, 'A', 8789, 75, 'q', 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'e', 'r', 'I', 'm', 1525, 3577]

Ex Output:
h, 1181, 1631, 2605, 587, 1477, 2707, R, O


Ex Input:
[7231, 2153, '3257', '3693', 'P', 3291], [1543, 6411, '3257', '3693', 'G', 'k']

Ex Output:
3257, 3693


Ex Input:
[1529, 'f', 6905, 'Y', 'U', 4457, 'f', 'g', 'g', '8363', 'a', '9567', 'M', 'w', '6615', 'h', '1983', '2367', '8295', 'b', '3639', 't', '4151', '8941', '5249', 'Y', 'z', '3527', '5985', 'I', 'W', 'O', 'u', 1627, 3079, 5063, 'E', 'k', 'W', 7979], [1691, 389, 'H', 2313, 405, 1877, 'm', 'Y', 'Y', 6791, 'A', 'A', 'Q', 1371, 3419, 'w', 'V', 'h', 5871, 'J', 9885, 8423, 'y', 6993, 283, 'g', 'g', '8363', 'a', '9567', 'M', 'w', '6615', 'h', '1983', '2367', '8295', 'b', '3639', 't', '4151', '8941', '5249', 'Y', 'z', '3527', '5985', 'I', 'W', 'O', 'L', 'F', 'E']

Ex Output:

g, g, 8363, a, 9567, M, w, 6615, h, 1983, 2367, 8295, b, 3639, t, 4151, 8941, 5249, Y, z, 3527, 5985, I, W, O