In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Q', 3837, 8219, 8223, 'Y', 'w', 'H', 7697, 'f', 4081, 'k', 'd', 'u', 'L', 'h', 'B', 8793, 6519, 'r', 'C', 'D', 'j', 9441, 'e', 'S', 'm', 'H', '591', 'Z', '3789', '6459', '605', '4739', '7613', 'N', '797', 'o', 'v', 'k', 'B', '3771', 'b', '3799', 'J', 'h', '7765', 'q', 'P', 'W', 2815, 'Z', 'E', 4151, 'P'], ['P', 4585, 'e', 'S', 'm', 'H', '591', 'Z', '3789', '6459', '605', '4739', '7613', 'N', '797', 'o', 'v', 'k', 'B', '3771', 'b', '3799', 'J', 'h', '7765', 'q', 'P', 'U', 'X', 1819, 'd', 5451, 9385, 'Q', 2039, 'S', 5361, 615, 815, 'A', 'Z', 'w', 'U', 'L', 2173]