Answer:
He completed 13 courses worth 3 credits and 5 courses worth 4 credits.
Explanation:
Let
Number of courses worth 3 credits = x
Number of courses worth 4 credits = y
1. The student completed a total of 18 courses, then
![x+y=18](https://img.qammunity.org/2020/formulas/mathematics/middle-school/zn30b0tsw91v0w4krq51ipy1cgsc3nijsm.png)
2. The student earned a total of 59 credits, he earned 3x on 3 credits' courses and 4y on 4 credits' courses, so
![3x+4y=59](https://img.qammunity.org/2020/formulas/mathematics/middle-school/61cnauovtdpyd3j1jekefhrae5vduggnmh.png)
3. You get the system of two equations:
![\left\{\begin{array}{l}x+y=18\\ \\3x+4y=59\end{array}\right.](https://img.qammunity.org/2020/formulas/mathematics/middle-school/eq8nkomdefckih3012ugra5wwzigiwkaxn.png)
From the first equation
![x=18-y](https://img.qammunity.org/2020/formulas/mathematics/middle-school/p27x6cya7ziwu0htc943euq9alh9no03b9.png)
Substitute it into the second equation:
![3(18-y)+4y=59\\ \\54-3y+4y=59\\ \\4y-3y=59-54\\ \\y=5\\ \\x=18-5=13](https://img.qammunity.org/2020/formulas/mathematics/middle-school/u44schuygpkmja0d7grcbqtq582eo1qqkv.png)
He completed 13 courses worth 3 credits and 5 courses worth 4 credits.