Firstly, you know that you measure any angle from the x axis. Therefore cos(180-x) means x degrees in an clockwise direction from the x axis at 180 degrees. This is the same 'base' angle as x degrees. But cos is negative in the second quadrant. Therefore cos(180-x)=-cosx.
Does that make sense?