algebra 2 how do you write an equation for the graphs?