The child is traveling 40 light years at 0.9999c, which takes about 40 years + 35 hours. However the child won't arrive back 50, the child will not yet be 11. See http://www.wolframalpha.com/input/?i=time+dilation+traveling... for the exact age.
See http://en.wikipedia.org/wiki/Twin_paradox for more on this, including an explanation of why your belief about the age of the traveler is wrong.