Find x , where 0<x<360 , which satisfy

putting and continuing , i found that x=61.9 using where and

But how come it doesn't work when

i put -1 , doing the same thing .. and i don get the same result , x=61.9 ?

is it because -1 is not positive ? Is it one of the conditions ?