When three times a number is added to the square of the number the result is 10, Find the number.