This looks intimidating when you write it, but it is pretty simple really.
A little algebra on the equation gets you cos (πx/3)=1/2
cos = 1/2 when the angle π/3...πx/3 = π/3...and there you have it
(Oh, I assumed you know the trig functions in a 30-60 right triangle!)