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,10.908712114636+3,-3,10.908712114636+3);path([[0,0],[5,0],[0,10.908712114636],[0,0]]);text([5/2,10.908712114636/2],'12','right');text([0,10.908712114636/2],'x','left');text([5/2,0],'5','below');]

`x =`  

Get help: