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

Example 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]
Example Output: 8423, j, 8053, g, 5441, H

Example Input: [1699, 5363, 'U', 3351, 'K', 1771, 8981, 'y', 4317, 'P', 'H', 'f', 'j', '7169', '129', 'Z', 'K', 'r', 'o', 'v', '1713', 'g', 'A', 'h', 'e', '421', 'a', 'b'], [1477, 'o', 'h', 4413, 'Y', 'V', 4539, 't', 'S', 3527, 9183, 9541, '7169', '129', 'Z', 'K', 'r', 'o', 'v', '1713', 'g', 'A', 'h', 'e', '421', 'j', 'V', 8579, 3395, 'l', 'X', 'l', 'm', 4239]
Example Output: 7169, 129, Z, K, r, o, v, 1713, g, A, h, e, 421

Example Input: [3559, 2719, 'd', '7785', 'a', 'Z'], [4749, 'F', 'd', '7785', 'e', 2509]
Example Output:
d, 7785