Enable text based alternatives for graph display and drawing entry

Try another version of this question

Find the area of the trapezoid shown below

[Graphs generated by this script: initPicture(-1,5.5,-1,5.5);path([[0,0],[1,4],[3,4],[5,0],[0,0]]);text([2,4],'12.2','above');text([4,2],'27.3','right');text([0.5,2],'25.2','left');text([2.5,0],'30.5','below');stroke='red';fontfill='red';line([1,0],[1,4]);text([1,2],'24.4','right');]