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

Input: Consider Input: [4731, 'z', 8923, 1325, 'P', 8435, 'u', 'B', 'N', 8191, 'O', '3019', '4077', 'w', 'W', 'x', 'z', '2233', '6509', 'N', '3069', '5471', 'K', 'x', 'q', '979', 'M', 'O', 'H', 9453], [4977, 'E', 4865, 'O', '3019', '4077', 'w', 'W', 'x', 'z', '2233', '6509', 'N', '3069', '5471', 'K', 'x', 'q', '979', 'M', 'R', 'T', 7065]

Output: O, 3019, 4077, w, W, x, z, 2233, 6509, N, 3069, 5471, K, x, q, 979, M


Input: Consider Input: [5451, 't', 'Q', 5199, 'A', 'P', '5961', '133', 'Q', 'V', '7547', '899', '6027', '439', 'u', 'l', 'o', 9943, 'b', 'm'], [1925, 'Q', 'D', '5961', '133', 'Q', 'V', '7547', '899', '6027', '439', 'H', 3347]

Output: 5961, 133, Q, V, 7547, 899, 6027, 439


Input: Consider Input: ['S', 'g', 'G', 'x', 'Z', '5969', '1011', 'x', '3873', '9319', '6691', 'P', 't', 'o', 5945, 'L', 'D', 6741], ['V', 6061, 1145, 8363, 't', 'm', 3695, 'G', 'x', 'Z', '5969', '1011', 'x', '3873', '9319', '6691', 'H', 1323, 'f', 'y', 4227, 3433, 787]


Output: G, x, Z, 5969, 1011, x, 3873, 9319, 6691