Twice the square of a positive integer is 12 more than 10 times that integer. What is the integer?