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

['N', 'V', 'a', 7017, 'f', 'y', 'm', 'Q', 'R', 'g', 'q', '5777', 'n', '7597', 'e', 'm', '3131', '6839', '8339', 'O', 'n', '5895', 'P', '9419', 'i', '7875', '4771', '7179', '8551', '4597', 'B', 1743, 3589], ['o', 2181, 'a', 'i', 'D', 'A', 1073, '5777', 'n', '7597', 'e', 'm', '3131', '6839', '8339', 'O', 'n', '5895', 'P', '9419', 'i', '7875', '4771', '7179', '8551', '4597', 'h', 'a', 5469, 'O', 8223, 'Y', 8961, 8705, 9427, 2123, 'a']
5777, n, 7597, e, m, 3131, 6839, 8339, O, n, 5895, P, 9419, i, 7875, 4771, 7179, 8551, 4597