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

Ex Input:
[5555, 'e', 'k', '4653', 'S', 'q', 'o', 'z'], [8655, 3981, 'k', '4653', 'S', 'q', 'k', 8991, 8619, 's']

Ex Output:
k, 4653, S, q


Ex Input:
[2185, 'H', 9933, 6987, 'l', 'N', 3787, 'H', 'K', 'X', 'I', '8517', 'a', 'M', 'e', '7443', '185', '6897', '8395', '3867', '4671', 'e', '2031', '877', 'T', '735', '1273', 'd', '7757', '2005', 't', 8763, 2723, 457, 8941, 9919], [2819, 4477, 'x', 'S', 'D', 1309, 4739, 'B', 'Z', 'K', 7141, 'I', 'x', 6709, 'p', 5629, 'M', 8669, 3157, 5169, 9737, 'Z', 'H', 'K', 'X', 'I', '8517', 'a', 'M', 'e', '7443', '185', '6897', '8395', '3867', '4671', 'e', '2031', '877', 'T', '735', '1273', 'd', '7757', '2005', 'w', 'j', 5143, 6859, 8985, 8441, 'K', 'H', 's']

Ex Output:
H, K, X, I, 8517, a, M, e, 7443, 185, 6897, 8395, 3867, 4671, e, 2031, 877, T, 735, 1273, d, 7757, 2005


Ex Input:
['f', 4023, 7513, 883, 'U', 'r', 165, 3055, 8959, '6829', '8067', '5477', '2511', 's', '857', 'f', '7593', 'A', 'J', 'k', '4041', 'J', 'Z', 2021, 'U', 'V'], ['x', 6261, 3869, 2159, 'A', 6481, 4617, 4019, 'I', 'i', '6829', '8067', '5477', '2511', 's', '857', 'f', '7593', 'A', 'J', 'k', '4041', 'V', 'R', 'T', 'e', 9931, 'A', 5505]

Ex Output:

6829, 8067, 5477, 2511, s, 857, f, 7593, A, J, k, 4041