Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['i', 1479, 'w', 4109, 8477, 'A', 7983, 6329, 7117, 7933, 8701, 1019, 1041, 'q', '1827', '5617', 'u', 'B', 't', 'v', 'B', 'y', 'R', '1107', '5903', '9399', '6541', '3195', '747', '2633', 'U', '5885', '7781', 'd', 'F', 'M', '1539', '6819', '4203', 'm', 'D', 'R', 'J', 'C', 'c', 5925, 5013, 2965, 8309, 9461], [1155, 5401, 1997, 'H', 'O', 'w', 'G', 'w', 'z', 2703, 'Z', 4103, 6345, 'K', 10015, 'm', 2029, 'P', 2217, 'N', 9605, 'Z', 'z', 'P', 9937, 1879, 6837, 3265, 'H', 'z', 'q', '1827', '5617', 'u', 'B', 't', 'v', 'B', 'y', 'R', '1107', '5903', '9399', '6541', '3195', '747', '2633', 'U', '5885', '7781', 'd', 'F', 'M', '1539', '6819', '4203', 'm', 'D', 'R', 'J', 'Q', 6421, 517, 8849, 6637, 'r', 9897, 'r', 'B', 'Z', 8073, 'p', 'v', 'h', 5537, 7119, 'p', 'K', 4569, 8539, 'u']
Output:
q, 1827, 5617, u, B, t, v, B, y, R, 1107, 5903, 9399, 6541, 3195, 747, 2633, U, 5885, 7781, d, F, M, 1539, 6819, 4203, m, D, R, J