In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5417, 'I', 'p', 5089, 'r', 3493, 'c', '9631', '8701', '3381', '6813', '83', 'b', 'q', 'x', 3261, 5589], [2235, 1127, 'c', '9631', '8701', '3381', '6813', '83', 3941, 'i', 3679, 'D']