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

Example Input: ['u', 'U', 'a', 'Z', 'b', 'Q', 'D', 5239, 6595, 1793, 'f', '7733', '5727', '3047', '4951', '8907', 'D', '5105', 'i', '1837', 'i', 'Y', 'b', '5769', 'p', '1767', 'Y', 'B', 'q', '4075', '917', 'c', 'm', 867, 585, 1765], [5201, 'W', 'a', 'k', 9031, 4815, '7733', '5727', '3047', '4951', '8907', 'D', '5105', 'i', '1837', 'i', 'Y', 'b', '5769', 'p', '1767', 'Y', 'B', 'q', '4075', '917', 'c', 'X', 2991, 3377, 2933, 5359, 6073, 8921, 789, 'W', 7037, 9953, 'N', 8007, 1755, 1959, 9619]
Example Output: 7733, 5727, 3047, 4951, 8907, D, 5105, i, 1837, i, Y, b, 5769, p, 1767, Y, B, q, 4075, 917, c

Example Input: ['J', 'h', '8587', 'b', 't', 'k'], [8955, 7253, '8587', 'b', 'e', 8655]
Example Output: 8587, b

Example Input: [4875, 9049, 6189, 's', 2909, 'g', '4035', '5015', 't', '4561', '9233', 'A', '3115', '9481', 'h', '699', 's', 'K', 'H', 2137, 4405, 2779, 8047, 'A', 899], ['C', 'G', 'G', 'B', '4035', '5015', 't', '4561', '9233', 'A', '3115', '9481', 'h', '699', 's', 'K', 'U', 2199, 'V', 7657, 1265, 'R', 665, 1151]
Example Output:
4035, 5015, t, 4561, 9233, A, 3115, 9481, h, 699, s, K