In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1789, 2771, 'N', 'H', 'K', 9423, 5581, 9809, 'r', 'q', 'D', 'i', 'm', '9999', 'r', '5021', '7663', '1523', 'G', 'f', '2457', 'J', 'p', 'E', 9373, 'E', 5795, 4737, 'G', 7861, 'p', 'u'], [6977, 'N', 8071, 3719, 'C', 'd', 5073, 'r', 85, 'k', 7995, 'D', 'i', 'm', '9999', 'r', '5021', '7663', '1523', 'G', 'f', '2457', 'l', 'P', 'U', 2699]