In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['R', 'b', 'f', 'p', 'n', 'j', 1171, 'q', 'U', 6987, 'Y', 'U', '789', '6385', 'i', '635', 'l', '4883', '5985', '6059', 'H', 'R', 'q', 'R', 'y', 'E', 1787, 'N'], ['f', 1801, 'V', 'u', 3869, 7759, '789', '6385', 'i', '635', 'l', '4883', '5985', '6059', 'H', 'R', 'q', 'R', 'z', 't', 1617, 2029, 1035, 'w', 'J', 9053, 8421]