In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 'S', 'M', 5003, 'Z', 'k', 't', 'n', 'd', 5623, 'Q', 5965, 2917, '7887', '2237', 'R', '7301', 't', '5235', '2123', 'i', 's', '5813', 'K', 'P', 'i', '3781', 'q', '8949', 'c', 'E', '8215', 'o', 3443, 4217, 9459, 7057, 'B', 6847, 'a', 3755, 'A', 7159, 'B'], ['h', 3061, 203, 3433, 'X', 437, 9737, 'k', 'd', 'O', 'e', 8479, 1301, 'Z', 'S', 3517, 'F', 'a', '7887', '2237', 'R', '7301', 't', '5235', '2123', 'i', 's', '5813', 'K', 'P', 'i', '3781', 'q', '8949', 'c', 'E', '8215', 'U', 'x', 1765, 1983, 9197, 'X', 8695, 1843]