Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: the ratio of three numbers is 3 : 4 : 5 and the sum of their squares is 1250 . the sum of the numbers is ?
