Answer:
The number of dimes are 100 and number of quarters are 140.
Explanation:
Let the number of dimes be 'd' and quarters be 'q'.
Given:
The sum of amount is $45.
The total number of coins are 240.
1 dime = $0.10
∴ 'd' dimes =

1 quarter = $0.25
∴ 'q' quarters =

Now, as per question:

Multiplying equation (1) by -0.1 and adding the result to equation (2), we get:

Therefore, the number of dimes are 100 and number of quarters are 140.