As the juggler is throwing n balls each second and 2nd when the first is at its highest point, so the time taken by one ball to reach the highest point, t=n1s.
And as at highest point v=0.
So, from first equation of motion,
v=u+at⇒0=u−g(n1)⇒u=ng
Now in order to calculate height, using second equation of motion, we have:
S=ut+21at2 ...(i)
⇒h=n1×ng−21g×(n1)2
⇒h=2n2g
So, the balls rise up to a height of h=2n2gm.