In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9787, 8761, 3071, 3401, 'u', 4561, 'I', 4319, 'h', 'T', 'Y', 'N', 'f', 'W', 'C', 'V', '5815', '4175', '545', '79', '8387', 'g', 5141, 6767], ['S', 'i', 'w', 5551, 's', 'h', 'T', 'Y', 'N', 'f', 'W', 'C', 'V', '5815', '4175', '545', '79', '8387', 'O', 4121, 'j', 'p', 'v', 'v', 'E', 2277, 'L', 9955, 'D']