if you use pre on the first line before the diagram and /pre on the last line after the diagram, they should stay spaced out the way you want them.
you need, however, to surround pre with <> and you need to surround /pre with <>
i took your diagram and used pre and /pre surrounded by <> and this is what i was able to get.
/|\
/ | \
/30|40\
/ | \
/ | \
/ | \
/ | \
/80 x|y z\
-----------------
here's a picture of how the inputs would look.
in the triangle on the left, angle x has to be 70 degrees because the sum of the angles of a triangle are 180 degrees.
angle y is supplementary to angle x and is there equal to 180 - 70 = 110 degrees.
z has to be equal to 30 degrees because the sum of the angles of a triangle have to be 180 degrees and 110 + 40 + 30 = 180.
the diagram is, of course, not drawn to scale.
if it was drawn to scale, it would look more like this:
if i am correct, than your solution should be that y is equal to 110 degrees.
try that and see if it works.
let me know how you did.