You can put this solution on YOUR website! The question is missing information.
Also, If NinasAge = 3*SamsAge then NinasAge+1 can not be SamsAge*4, unless we are talking about fractions of one year.
Edit: Doh! I should've worked it out on paper a bit, then I would've saw that it is possible, 'kids' being the keyword.