In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8409, 'b', 'h', 'J', 2255, 'M', 6185, 'N', 'f', 1229, 'z', 705, 'x', 'U', 'B', 'x', 'z', '2181', '7649', 'w', 'g', 'B', 'X', '3019', 'Y', 'V', 'g', '5233', 'i', '7999', '6907', 'm', 'd', 2043, 'y', 'd', 'a', 'R', 'P'], [2905, 7821, 'l', 'Q', 6441, 'E', 'x', 'U', 'B', 'x', 'z', '2181', '7649', 'w', 'g', 'B', 'X', '3019', 'Y', 'V', 'g', '5233', 'i', '7999', '6907', 'm', 'W', 'q', 2949, 1787, 'b', 's', 9563, 9879, 4601, 3185]