In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5927, 'E', 'F', 'E', 1335, 1947, 9583, 'w', 9049, 'K', 'N', 7345, 'P', 431, 2525, '1113', 'Q', '543', 'S', 'F', '7195', 'I', 'j', 'I', '8419', '6239', '491', 'k', 'x', 'n', '555', 'K', 'd', '7041', '5447', 'v', 'o', 4191, 635, 'P', 'V', 'R', 7779, 'q', 4677], ['g', 4529, 'Y', 9501, 'C', 'Z', 5795, 'm', 'e', 743, 8289, '1113', 'Q', '543', 'S', 'F', '7195', 'I', 'j', 'I', '8419', '6239', '491', 'k', 'x', 'n', '555', 'K', 'd', '7041', '5447', 'v', 'd', 6973, 6781, 9199, 'R', 'Q', 7199, 3821, 1211, 'M', 589, 6243, 'V']