Let:
q be the number of quarters
d be the number of dimes
To solve this question, follow the steps below.
Step 01: Write an equation that relates the number of quarters and dimes.
Knowing that "The number of quarters was 12 more than three times the number of dimes":
[tex]q=12+3\cdot d[/tex]Step 02: Write an equation that shows the amount of money that Peter has.
Dime = 10 cents = $0.10.
Quarter = 25 cents = $0.25.
Then,
[tex]0.1d+0.25q=18.30[/tex]Step 03: Substitute q from step 1 in the equation from step 02.
[tex]0.1d+0.25\cdot(12+3d)=18.30[/tex]And solve the equation for d.
[tex]\begin{gathered} 0.1d+0.25\cdot12+0.25\cdot3d=18.30 \\ 0.1d+3+0.75d=18.30 \\ 0.85d+3=18.30 \end{gathered}[/tex]Subtracting 3 from both sides:
[tex]\begin{gathered} 0.85d+3-3=18.30-3 \\ 0.85d=15.30 \end{gathered}[/tex]And divide both sides by 0.85:
[tex]\begin{gathered} \frac{0.85}{0.85}d=\frac{15.30}{0.85} \\ d=18 \end{gathered}[/tex]The number of dimes is 18.
Step 04: Knowing the number of dimes, find the number of quarters.
[tex]\begin{gathered} q=12+3\cdot d \\ q=12+3\cdot18 \\ q=66 \end{gathered}[/tex]The number of quarters is 66.
In summary,
Number of dimes = 18.
Number of quarters = 66.