In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9789, 5881, 'Y', 'I', 2023, 'v', 'c', 4695, 8921, 'q', 'v', '3317', 'K', 'w', '9145', 'i', 'f', '1925', '4879', '4189', '3047', '2343', 'Y', 7079, 'T', 1617, 7601, 3471], [2581, 'U', '3317', 'K', 'w', '9145', 'i', 'f', '1925', '4879', '4189', '3047', '2343', 'm', 6241, 8437, 7857, 'k', 793, 2565, 6981, 5131, 'w', 'S']