All problems like this are not mathematics; they are just guessing games. You can put any number next and it will be a valid sequence.
Spend as much or as little time as you want trying to find a logical pattern in the given numbers that lets you predict the next number -- but realize that any answer you come up with might not be "right".
By looking at the sequence formed by the differences between the successive terms of the given sequence, I see a pattern that leads to a POSSIBLE answer; but there is no way to know if that answer is what the author of the problem had in mind.
23 27 24 32 23
+4 -3 +8 -9
It MIGHT be that the next two differences are +16 and -27....