Enable text based alternatives for graph display and drawing entry

Try another version of this question

Find the unknown length, x, for the similar triangles below.

[Graphs generated by this script: initPicture(-1,11,0,2.25);stroke="black";path([[1,1],[10,1],[3,2],[1,1]]);text([2,1.5],"5.5 m",left);text([6.75,1.8],"8 m");text([5,0.8],"10.5 m");] [Graphs generated by this script: initPicture(-1,11,0,2.25);stroke="black";path([[1,1],[10,1],[3,2],[1,1]]);text([2,1.5],"7.7 m",left);text([6,1.8],"x");text([5,0.85],"14.7 m");]

m (If needed, round to 2 decimal place.)