It's a trigonometric identity.
cos(180 - x) is always the opposite of cos(x).
You could come to that conclusion several ways, but the easiest method is to look at a typical angle Q on a graph and compare it with its supplement (which is defined as 180 - Q), and then you will see why the conclusion is true.