If three times a positive number is subtracted from the square of the number, the result is $$10$$. Find the number.