Answer:
The jogging rate of Matthew is 5 mph.
Explanation:
Let the jogging rate of Matthew be x mph.
It is given that his jogging rate was 25 mph slower than the rate when he was riding. So, the riding rate is (x+25) mph.
The distance between Matthew and his friend's house is 12 miles.
![Speed=(Distance)/(Time)](https://img.qammunity.org/2019/formulas/mathematics/high-school/lbfp7enmkln4fmvzirs7cbql60uqqhhyqg.png)
![Time=(Distance)/(Speed)](https://img.qammunity.org/2019/formulas/mathematics/middle-school/e6ra5o2q5ya9akbc8vftzyfwptj81b51i7.png)
The time taken by Matthew in jogging is
and the time taken by Matthew in riding is
.
It took him 2 hours longer to jog there than ride back.
![(12)/(x)=(12)/(x+25)+2](https://img.qammunity.org/2019/formulas/mathematics/middle-school/a5j3l8tr290og0jatot13nkcu4uyjf0bvg.png)
![(12)/(x)-(12)/(x+25)=2](https://img.qammunity.org/2019/formulas/mathematics/middle-school/3727se9op5i2123wb1zi23q4oxwrv6wlez.png)
![(12(x+25)-12x)/(x(x+25))=2](https://img.qammunity.org/2019/formulas/mathematics/middle-school/ygk9hsem87czdq6qegkg13q4o7fkplosox.png)
![12x+300-12x=2x(x+25)](https://img.qammunity.org/2019/formulas/mathematics/middle-school/ewwgqntdrf1udpxsnaf82z8k1py6avkuht.png)
![300=2x^2+50x](https://img.qammunity.org/2019/formulas/mathematics/middle-school/dqu667vwjh8i89o5lxbjcoayomvk4vz7qs.png)
![0=2x^2+50x-300](https://img.qammunity.org/2019/formulas/mathematics/middle-school/kpm1r7wk4q1v30ypzck4b36z68s21wjze0.png)
![0=x^2+25x-150](https://img.qammunity.org/2019/formulas/mathematics/middle-school/88ydbnpw597sp98dvely2v759tmp8smfk1.png)
![0=x^2+30x-5x-150](https://img.qammunity.org/2019/formulas/mathematics/middle-school/gscxuoh79jz0s7w14ucj4p62v4zt58qiq3.png)
![0=(x+30)(x-5)](https://img.qammunity.org/2019/formulas/mathematics/middle-school/v0lo3zk5pqavt809cwdbbvp9ysk8hqn263.png)
Equate each factor equal to 0.
![x=5,-30](https://img.qammunity.org/2019/formulas/mathematics/middle-school/6ixbbwkqxzd8yvohjbjz381nah5kkvpi3u.png)
The speed cannot be negative, therefore the jogging rate of Matthew is 5 mph.