This is done by factoring. 1/8 is smaller than 1/2, so we can factor a 1/8 out of 1/2. This is what that looks like: , because factoring after all is a form of division. When we divide a fraction by a fraction, we bring the lower fraction up and flip it to multiply, giving us this: . This of course reduces to 4. So when we factor out 1/8, what we will have then is , choice D from above.
There is a supplementary angle (an pair of angles that create a straight line is equal to 180°) and there is the rule that all three angles in a triangle equal 180° as well.