Drawing lines as an exercise can be used to draw lines with a given equation, symmetry lines, asymptotes etc. Since we can make drawing exercises with points, you can also make drawing exercises with lines.
[list][*][b]solution[/b]: Define the line [code]sol: y = a x b[/code] with previously defined random numbers a and b.[/*][*][b]answer[/b]: Create the line [i]ans[/i][br][code]P = (-14, 2)[br]Q = (-12, 2)[br]ans = Line(P, Q)[/code][/*][/list]Now, continue in a similar way as in previous file to define to dynamic the dynamic colors of the points P and Q and the line ans.