Answer: 0.3 m
So basically we want to think of this situation from the perspective of conservation of energy. As in, we can derive the velocity of both the swing and Stewie at the bottom of the swing via:
mgh = 0.5m*v^2
v = (2*g*h)^0.5 = (2*9.8*0.5)^0.5 = 3.13 m/s
This represents the velocity of Stewie and the swing at the bottom of the swing's path. Now, we will think of this from the perspective of conservation of momentum. Basically, the collective momentum of Stewie and the swing is equal to the sum of their subsequent momenta:
(5+2)*3.13 = 5*2+5*v(swing); v(swing) represents the velocity of the swing following Stewie jumping.
7*3.13 = 10 + 5v
v = 2.4 m/s
Now, we return to conservation of energy and find that the kinetic energy of the swing following Stewie jumping is equivalent to its final gravitational potential energy.
Based on the easily derivable formula: h=v^2/2g, we find that h = 2.4^2/19.6,
which is: 0.3 m.
If g is supposed to be 10 or you need a different degree of precision, then you can use my method. Hope this helps.