In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 'J', 'Y', 'I', 'O', '6939', 'Z', '397', '3457', 'b', '4437', 'D', '4121', '2657', 'N', '8643', 'h', '5637', '5919', '5325', '3243', 'K', 'D', 'J', 'E', '3849', 'c', '5233', '2851', '4537', '3241', 'Y', 4503, 'C', 'p', 'N', 5851, 9149], [4591, 'q', 8791, 'g', 'd', 'Z', 6303, 'G', 'B', 'n', 'J', 1833, 'y', 'Y', 'v', 'k', 5461, 'C', 'S', 7633, 4295, 'G', 'O', '6939', 'Z', '397', '3457', 'b', '4437', 'D', '4121', '2657', 'N', '8643', 'h', '5637', '5919', '5325', '3243', 'K', 'D', 'J', 'E', '3849', 'c', '5233', '2851', '4537', '3241', 'q', 'Q', 1035, 6065, 'D', 'U', 8895]