Question 2: Writing and Graphing Equations in…