Enable text based alternatives for graph display and drawing entry

Try Another Version of This Question

Find the unknown length.

[Graphs generated by this script: initPicture(-1,11,0,3);stroke="black";path([[1,1],[10,1],[1,2],[1,1]]);text([1,1.5],"8",left);text([5,1.8],"8.54");text([5,0.8],"a");stroke="black";path([[1,1],[1.5,1],[1.5,1.25],[1,1.25],[1,1]]);]

cm (If needed, round to 2 decimal places.)