Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [6747, 8811, 9247, 'd', 747, 4271, 'n', 8797, 'W', 'h', 'Y', 'W', 'h', 6287, 527, 57, 7909, 'W', 'H', 9223, 'H', 7817, 1371, 'z', 'u', '9', 'U', 'n', 'R', 'B', '7107', 's', '1969', '7843', 'V', '2273', '8431', '7129', 'R', 'Q', '3173', '9707', '4605', 'Y', '5581', 'C', '7049', 'M', '7187', '7439', 'D', 'O', '9427', '4189', 'V', 2745, 3147, 59, 'q', 8039], ['b', 7141, 'T', 'R', 4823, 's', 8039, 5883, 'E', 789, 945, 'u', '9', 'U', 'n', 'R', 'B', '7107', 's', '1969', '7843', 'V', '2273', '8431', '7129', 'R', 'Q', '3173', '9707', '4605', 'Y', '5581', 'C', '7049', 'M', '7187', '7439', 'D', 'O', '9427', '4189', 'p', 'V', 'r', 'b', 'H', 'd', 8695, 'i', 5325, 9857]
Output:
u, 9, U, n, R, B, 7107, s, 1969, 7843, V, 2273, 8431, 7129, R, Q, 3173, 9707, 4605, Y, 5581, C, 7049, M, 7187, 7439, D, O, 9427, 4189