In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['c', 'z', 1487, 'D', 'G', 395, 'g', 5615, 'd', 3281, 'T', 'H', 'L', 'n', '3413', '2883', 'b', 'W', '6445', '9503', '693', 'e', 'g', '7057', '7195', '9521', 'J', '819', '7565', '7693', '7739', 'I', '2907', 'c', '9231', 'n', 'X', 'J', 1751, 9761, 'I', 2735, 'r', 5127, 's', 5949, 'z', 'Q', 'w', 'l', 't', 'P'], [8517, 'w', 'n', '3413', '2883', 'b', 'W', '6445', '9503', '693', 'e', 'g', '7057', '7195', '9521', 'J', '819', '7565', '7693', '7739', 'I', '2907', 'c', '9231', 'o', 183, 4737, 2317, 2787, 9135, 'F', 4407, 'Q', 'Y', 5839]