In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5803, 9071, 'T', 'E', 'D', 2619, 1759, 'D', 7903, 5099, 'm', 'I', 'H', '5749', 'K', 'F', 'X', '6951', 'W', '6295', '2499', '8261', 'R', 7281, 9627, 'h', 'V'], ['J', 5389, 197, 8881, 'S', 'V', 9537, 'z', 'I', 'H', '5749', 'K', 'F', 'X', '6951', 'W', '6295', '2499', '8261', 'y', 353, 3249]