when three times a number is added to a square of a number the result is ten,find the number.