Particle production in proton-proton collisions at 19 and 24 GeV/c