Question 2: Writing Linear Equations Given Two…