Enable text based alternatives for graph display and drawing entry

Try another version of this question

Find the length of the leg `x` on the right triangle below. Enter the exact value, not a decimal approximation.

[Graphs generated by this script: initPicture(-3,16.124515496597+3,-3,16.124515496597+3);path([[0,0],[8,0],[0,16.124515496597],[0,0]]);text([8/2,16.124515496597/2],'18','right');text([0,16.124515496597/2],'x','left');text([8/2,0],'8','below');]

`x =`  

Get help: