In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[585, 917, 4199, 'n', 8321, 'H', 'y', 'n', 'q', 1487, 'd', '2809', 'Z', '7751', 'a', '6519', '9229', '3403', '699', '9337', 'W', 'z', 'f', 'm', '1859', '4997', 'J', 'P', '6433', 'l', 725, 9815, 'G', 2547, 'n', 1905, 5687, 9561], ['u', 'H', 6845, 'j', 177, 'F', 5357, 8763, 9477, 'd', '2809', 'Z', '7751', 'a', '6519', '9229', '3403', '699', '9337', 'W', 'z', 'f', 'm', '1859', '4997', 'J', 'P', '6433', 'n', 1199, 7781, 9621, 143, 9145, 5043, 'I', 'X', 5043, 7245]