In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8887, 'U', 'V', 'd', 'M', '6785', '747', 'q', 't', 'G', 'O', '5683', '1203', '7141', '4987', '359', 'A', '8817', '2871', 'L', '3249', 'R', 'm', 'D', 'N', 4405, 8229, 'b', 8257, 'j', 4877, 1917, 'P'], [4017, 2983, 'B', 1255, 'M', '6785', '747', 'q', 't', 'G', 'O', '5683', '1203', '7141', '4987', '359', 'A', '8817', '2871', 'L', '3249', 'R', 'm', 'D', 'n', 1795, 6395, 'O', 9099, 'V', 6373, 'A', 2577, 'C', 's', 'y', 'M', 'l', 1821, 'P']