In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8125, 'U', 'U', 'K', 'd', 'D', '1759', '6811', 'D', '8947', '209', '6259', 'V', '4687', 'U', '4251', 'A', 6419], ['L', 'a', '1759', '6811', 'D', '8947', '209', '6259', 'V', '4687', 'U', '4251', 's', 3493, 'P', 3109, 'J', 'T', 4985]