In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[857, 'D', 'Y', 5799, 'c', 'V', 'y', '2029', 'h', '6785', '2829', 'B', '7271', '8265', 'Y', '6285', 'i', 1347, 'B', 'T', 1165, 4387, 8151], ['y', 'T', 3895, 4729, 'C', '2029', 'h', '6785', '2829', 'B', '7271', '8265', 'Y', '6285', 'S', 'h', 'A', 7169, 3005, 'c', 's', 1987, 4385]