The coins currently in Canada are nickels (worth \$0.05), dimes (worth \$0.10), quarters (worth \$0.25), loonies (worth \$1.00), and toonies (worth $2.00).
The coins I have in my pocket have a total value of \$5.75. I have twice as many dimes as nickels. I have the same number of nickels as I have toonies. The nickels and dimes together are worth \$0.50. There are a total of 10 coins in my pocket. How many coins of each type do I have?
How can I use matrices and MatLab to solve this question? Currently, what I have tried is getting 5 matrices and using those as my system of equations. [screenshot of written work]
However, when I put the matrix into RREF, I get that $a=-1.6$, $b=-3.67$, etc.
I have also used logic to determine that the answer should be two nickels, four dimes, one quarter, one loonie, and two toonies.
What I want to know is the steps I would take to convert the word problem into a numerical problem, and how I would use MatLab to solve the resulting system of equations (if there even is one). This purpose of this exercise is for me to learn MatLab, and the process should only be completed using the MatLab command line.