Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [3857, 6299, 8757, 'Y', 3639, 'f', 6957, 's', 8077, 'h', 'E', 4515, 3909, 3005, '6217', 'd', '6163', '5899', '8949', '449', '5163', 'x', 'K', 'a', '2143', '8829', 'E', '8163', '6637', 'j', '7415', 'G', 'P', '2887', 'q', 'j', '9735', 'c', 'J', 't', '755', 'x', 'U', 2951, 793, 9771, 'U', 2565, 'Q', 7905, 8863, 647, 'm', 'L', 'E', 235, 'a', 'w'], ['Q', 'Y', 'S', 4641, 2855, 'N', 1567, 7355, 8387, 5297, 'G', 8959, 9861, 3599, 7969, 't', 2045, 'j', 'W', 8875, 2891, '6217', 'd', '6163', '5899', '8949', '449', '5163', 'x', 'K', 'a', '2143', '8829', 'E', '8163', '6637', 'j', '7415', 'G', 'P', '2887', 'q', 'j', '9735', 'c', 'J', 't', '755', 'W', 'K', 923, 9053, 'G', 'E', 'j', 'u', 'n']
Output:
6217, d, 6163, 5899, 8949, 449, 5163, x, K, a, 2143, 8829, E, 8163, 6637, j, 7415, G, P, 2887, q, j, 9735, c, J, t, 755