In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['q', 'p', 'x', 5981, 'q', 5401, 'g', 'N', 'F', 'U', 'V', 8775, 7509, 'S', 'n', 'b', 'M', '9701', '6807', 'M', 'X', 'e', '479', '7145', 'l', '9979', '15', 'S', 5239, 7467, 6261, 'I', 'm', 7941, 'Z'], [4751, 8541, 's', 5441, 'r', 777, 6835, 9823, 1819, 6403, 's', 'y', 'n', 'S', 'n', 'b', 'M', '9701', '6807', 'M', 'X', 'e', '479', '7145', 'l', '9979', '15', 't', 'B', 7189, 8397, 5199, 'u', 6553, 'x', 'O', 'P', 8195]