In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 5159, 'z', 7247, 8887, 2583, 'q', 7063, 'N', '7659', 'd', 'u', '3591', '5185', '1497', '1465', '3117', '9895', '2957', 'K', '7971', 'm', '8833', '9841', 'c', 1497, 6435, 'I', 2451, 8401, 3907, 3105, 'S', 'B', 'c', 4817, 9069, 3101, 8351], ['v', 1459, 2975, 6463, 'N', '7659', 'd', 'u', '3591', '5185', '1497', '1465', '3117', '9895', '2957', 'K', '7971', 'm', '8833', '9841', 'q', 't', 8455, 9825]