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],"3 m",left);text([6.75,1.8],"9.5 m");text([5,0.8],"10 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],"4.2 m",left);text([6,1.8],"x");text([5,0.85],"14 m");]

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