Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['O', 9795, 7005, 2249, 'I', 'G', 'S', 5391, 'm', 'T', 'e', 6483, 'r', 'W', 'L', 1095, '4389', '7245', '841', 'I', 'p', 'j', '1859', 'm', 'X', '431', 'Z', '4553', 'A', '7093', '9193', 'U', 'r', '3421', 's', '1105', 'Y', 'H', '987', '6947', 'W', 'c', 'Z'], [4551, 747, 'H', 5097, 'U', 'D', 'V', 9117, 'A', 7407, 'H', 'd', 5673, 'N', 'q', 'g', 'y', 5523, 'H', 'c', 'A', 4141, '4389', '7245', '841', 'I', 'p', 'j', '1859', 'm', 'X', '431', 'Z', '4553', 'A', '7093', '9193', 'U', 'r', '3421', 's', '1105', 'Y', 'H', '987', '6947', 'W', 'H', 'P', 6759, 7029, 5323, 4427, 'f', 2321, 2971, 6645, 2407, 4365, 397]
Output:
4389, 7245, 841, I, p, j, 1859, m, X, 431, Z, 4553, A, 7093, 9193, U, r, 3421, s, 1105, Y, H, 987, 6947, W