Let, the number of dimes be x.
Given, Brooklyn has three times as many nickels as dimes.
So number of nickels =

We know that 1 nickel = $0.05
So, 3x nickels = $
= $

And 1 dime = $0.1
So, x dimes = $
= $

Given, total value of the coins = $4.
So, we can write the equation,



To find x, we have to move 0.25 to the other side by dividing it to both sides. We will get,



So, number of dimes = 16.
Number of nickels =
=

So we have got the required answer.
Number of dimes = 16 and number of nickels = 48.