Because these angles are on the opposite sides of each other, they have to add up to 180. This will make the equation 2x-5+45=180. Simplify this to get 2x+40=180. Subtract 40 from both sides to get 2x=140. Divide each side by 2 to isolate x. x=140/2. Simplify this to get x=70.