I was solving a problem from "An Introduction to Mechanics" by Kleppner and Kolenkow. The problem says..
A circus acrobat of mass $M$ leaps straight up with initial velocity $v_0$ from a trampoline. As he rises up, he takes a monkey of mass $m$ off a perch at height $h$ above trampoline. What is the maximum height attained by the pair?
Now I tried to solve the problem in many a way, but my answer didn't match. Ultimately, I used the conservation of momentum in the vertical direction and then the answer came out right. But previously I understood that momentum conservation cannot be applied in direction where there is a net external force acting on system. And here in this sum, gravity (an external force) is surely acting on the Acrobat-Monkey pair downwards. So can anyone tell me, how is the application of momentum in vertical direction justified in this problem, but not in problems involving projectile motion?