In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8861, 'A', 5269, 'a', 'z', 987, 497, 'd', 'X', 4711, 1305, 'u', '5413', '3195', 'y', 'Y', '2065', 'w', '6747', 'T', '3023', '3645', 'J', '6393', 'z', 'N', 5105, 'D', 'G', 'i'], ['A', 'N', 6055, '5413', '3195', 'y', 'Y', '2065', 'w', '6747', 'T', '3023', '3645', 'J', '6393', 'z', 'T', 8155, 'P']