Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5829, 217, 'G', 's', 'q', 7977, 'q', 'M', 'H', 8993, 1537, 'z', 'a', 7407, 'k', 'T', 2969, '7675', '4541', 'b', '7853', '8633', 'e', 'W', '5003', '9469', 'u', 'd', '4407', '9403', '3381', '9253', '6323', '6319', 'x', '7119', '1115', 'l', '6223', '4713', '8117', 'c', 'X', 'h', 'j', 1793, 'p', 445, 8039, 'g', 2431, 8915], ['q', 'A', 'i', 'v', 'I', 'Q', 7301, 'U', 9375, 2331, 'K', 'o', 'x', 967, 527, '7675', '4541', 'b', '7853', '8633', 'e', 'W', '5003', '9469', 'u', 'd', '4407', '9403', '3381', '9253', '6323', '6319', 'x', '7119', '1115', 'l', '6223', '4713', '8117', 'c', 'r', 'k']
Output:
7675, 4541, b, 7853, 8633, e, W, 5003, 9469, u, d, 4407, 9403, 3381, 9253, 6323, 6319, x, 7119, 1115, l, 6223, 4713, 8117, c