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],"6",left);text([5,1.8],"c");text([5,0.8],"11");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.)