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

Ex Input:
['U', 1887, '8423', 'j', '8053', 'g', '5441', 'H', 'j', 3847, 'd', 'J', 1971, 'M'], ['y', 'T', 'C', 'z', 6299, 5393, '8423', 'j', '8053', 'g', '5441', 'H', 'x', 'f', 4189, 'h', 'e', 6577]

Ex Output:
8423, j, 8053, g, 5441, H


Ex Input:
[1477, 'o', 1059, 'R', 't', 97, 7251, 1765, 'V', 1139, 'h', 7923, 'J', 'E', '6945', 'C', 'j', '4891', '4001', 'j', 'f', '8117', 'T', '2147', 'I', '3759', '5781', 'g', 'Y', 9333, 'm', 'V', 'T', 3427, 3397, 507, 'Y', 'k', 907, 'b', 8791, 'A'], ['Y', 6653, 'v', 9685, 'D', 2111, 'd', 'y', 5885, 5653, 'i', 6307, 2051, 7807, '6945', 'C', 'j', '4891', '4001', 'j', 'f', '8117', 'T', '2147', 'I', '3759', '5781', 'g', 'd', 9367, 'Y', 3109, 7395, 'R', 'L', 9041]

Ex Output:
6945, C, j, 4891, 4001, j, f, 8117, T, 2147, I, 3759, 5781, g


Ex Input:
['v', 8397, 'e', '4293', 'G', '7885', '5949', '2639', '5867', '4549', '3933', 'Z', '9315', 'b', 'a', 'j', 6705, 'L'], [6579, 'F', 'j', 3171, 6931, 'Y', 'e', 'c', '4293', 'G', '7885', '5949', '2639', '5867', '4549', '3933', 'Z', '9315', 'b', 'i', 'M', 9197]

Ex Output:

4293, G, 7885, 5949, 2639, 5867, 4549, 3933, Z, 9315, b