Writing the equation from a graph