In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['s', 'p', 8163, 2875, 3239, 'Z', 'q', 'W', 171, 'Q', 4859, 3353, 'h', '2279', 'a', 'Y', '6097', 'F', '5935', 'H', 'U', 's', '6561', '8555', 'U', '3469', '1367', 'S', '8071', 't', 'B', 'a', 5405, 'C', 4801, 'w'], ['n', 'F', 'j', 6215, 39, 'v', 'h', '2279', 'a', 'Y', '6097', 'F', '5935', 'H', 'U', 's', '6561', '8555', 'U', '3469', '1367', 'S', '8071', 'B', 9917]