Use the given conditions to write an equation for the line i…