In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3437, 'd', 3277, 9943, 'n', 'V', 'Y', 'w', 'x', 'g', 'N', '7521', '9675', '3909', 'H', 'i', '39', 'q', 'C', 'z', 'r', 'l', 'H'], ['p', 'd', 7, 2149, 7059, 'w', 'x', 'g', 'N', '7521', '9675', '3909', 'H', 'i', '39', 'q', 'C', 'P', 'R', 4161, 9787, 'B', 8217, 8643]