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

Ex Input:
[4601, 2349, 'b', 'b', 'o', 'd', 'D', 'M', 'P', '3119', 's', '9507', 'u', 7239, 'o', 5437, 5729, 3109], [2629, 9653, 7873, 'T', 6873, 2939, 'o', 'd', 'D', 'M', 'P', '3119', 's', '9507', 'w', 'G']

Ex Output:
o, d, D, M, P, 3119, s, 9507


Ex Input:
['r', 'g', '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'G', 'N', 2585], ['X', 5347, 'M', 'Z', 4615, '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'P', 'o']

Ex Output:
997, n, 631, 527, E, A, n, n, G, 1197, R, L


Ex Input:
['r', 'Z', 'E', 'v', '9441', 'J', 'T', '7951', '3177', '697', '3435', '523', 'o', 't', 'e', '1273', '8941', '2161', '2941', 'b', '3707', '3237', 's', 7197, 3657, 2883, 2175, 5907, 2965, 5981, 'Y', 4975, 'o', 1717], ['k', 'k', 's', 2827, 'H', 5129, 8771, 1941, 'A', 'F', 4197, 'm', 'x', 6801, 'W', 'r', 5337, 3757, 'v', '9441', 'J', 'T', '7951', '3177', '697', '3435', '523', 'o', 't', 'e', '1273', '8941', '2161', '2941', 'b', '3707', '3237', 'v', 5691, 'y', 'x', 'P', 'X', 'G', 'X', 6861, 9659, 7335, 'J', 'i', 1493, 'o', 5903, 853, 9747, 'G']

Ex Output:

v, 9441, J, T, 7951, 3177, 697, 3435, 523, o, t, e, 1273, 8941, 2161, 2941, b, 3707, 3237