sum of three numbers equals a given number