Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['K', 'W', 'Q', 'K', 'V', 941, 4525, 9325, '1601', '8985', '4969', '6371', 'w', 'D', 'a', '5315', '1405', '291', '7', 'L', 'Q', 'L'], [9319, 1395, 8291, 'L', 9695, '1601', '8985', '4969', '6371', 'w', 'D', 'a', '5315', '1405', '291', '7', 'L', 'G', 2299, 'l', 'V', 'T', 'j', 'y', 7571, 513, 6751, 3879, 'n']
Output:
1601, 8985, 4969, 6371, w, D, a, 5315, 1405, 291, 7, L