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

2 answers

3n+n^2=10
n^2+3n-10=0
(N-2)(n+5)=0
n= 2, or -5
i dont understand please