I want to know how to determine whether the x or r in cos A = -2/5 is negative so when im using cos A's values in the x^2+y^2=r^2 equation I dont use the wrong number

I want to know how to determine whether the x or r in cos A 25 is negative so when im using cos As values in the x2y2r2 equation I dont use the wrong number class=