Because of the property of vertical angles (the opposite angles
inside an X are equal), you can transfer the 45° measurement to the
angle between the 30° and x° angles. You know that all angles
on a line should equal 180°, so set up this equation: 40+30+45+x=180.
You can solve for x and get the answer 65° (C).