You know the range for the graph y = sin(x) is [-1, 1]. For your question, you should know that the -40 inside the brackets will not affect the vertical shifting of the graph. So:

To find what x values occur at the max and min, just set your expression equal to them