Enable text based alternatives for graph display and drawing entry

Try another version of this question

Question 1
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],"b",left);text([5,1.8],"10.82");text([5,0.8],"6");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.)