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

Example Input: [8521, 7389, 'Z', 959, 4009, 4683, 'y', '4295', '5675', 'a', '5585', 'q', '5785', '9081', 'U', 's', 'i', 'D', 2717, 'P', 3531, 8889], ['Y', 4689, 'H', 'h', 3485, 1659, '4295', '5675', 'a', '5585', 'q', '5785', '9081', 'U', 's', 'm', 'k', 3777, 'l', 4497, 5837, 7061]
Example Output: 4295, 5675, a, 5585, q, 5785, 9081, U, s

Example Input: ['n', 'B', 9073, 2685, '3289', '9837', '4995', 'e', '3075', 'm', '1005', '2279', 'P', '3949', '643', 'y', '6717', 'I', '891', 'k', 'Z', 'i', 643, 5111, 2247, 'a', 'D', 'd', 1549, 'y', 513, 9369], ['Q', 'n', 'z', 9967, 'S', 9781, 1179, 'f', 5261, '3289', '9837', '4995', 'e', '3075', 'm', '1005', '2279', 'P', '3949', '643', 'y', '6717', 'I', '891', 'k', 'G', 215, 'Q', 4821, 9073]
Example Output: 3289, 9837, 4995, e, 3075, m, 1005, 2279, P, 3949, 643, y, 6717, I, 891, k

Example Input: ['m', 's', 'r', 'H', '6275', 'J', 'S', 'J', 'D', 'L', 'O', 'p', 'E', 'q', '6069', 'M', '3607', 'C', 'I', '6167', '9235', '2509', 'm', 'G', '3933', '3483', '4825', 'H', '7765', 'n', 'o', 6787, 1693, 123, 9823, 5789, 'l', 2317, 1449, 'T', 'd', 'o', 'U', 6161, 'O', 4753, 4071, 9171, 9601, 'H', 8551, 'B'], ['p', 'R', 'a', 935, 1471, 'j', 9685, 'm', 5359, 7685, 'q', 'A', 'l', 'X', 1909, 5115, 9141, 'E', 215, 8135, 6039, 6355, 'v', 'g', 3411, 'X', 'H', '6275', 'J', 'S', 'J', 'D', 'L', 'O', 'p', 'E', 'q', '6069', 'M', '3607', 'C', 'I', '6167', '9235', '2509', 'm', 'G', '3933', '3483', '4825', 'H', '7765', 'n', 'q', 7323, 1195, 2309, 6727, 'z', 6425, 2995, 'f', 'B', 'e', 2941, 'G', 10001, 9045, 'f', 9847]
Example Output:
H, 6275, J, S, J, D, L, O, p, E, q, 6069, M, 3607, C, I, 6167, 9235, 2509, m, G, 3933, 3483, 4825, H, 7765, n