In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5635, 5611, 'i', 'W', 'Z', 'u', 'N', '4877', '2915', 'D', 'q', 'W', '3705', 'v', '7093', '9457', '1867', 'S', '1551', 'l', 'x', 'k', '8057', 'B', 'V', 'z', 'a', 'J', 4287, 6257], ['J', 5573, 'd', 'M', 'r', 'O', 'Y', 4953, 1723, 'u', 'N', '4877', '2915', 'D', 'q', 'W', '3705', 'v', '7093', '9457', '1867', 'S', '1551', 'l', 'x', 'k', '8057', 'B', 'V', 'z', 'a', 'v', 'n', 'M', 7577, 8143, 'F', 'D', 'k', 8687, 9929, 'I', 'N', 1451, 7493, 'V', 6089, 'y', 'i', 'p', 4373]