Let's use the variable "d" to represent the number of dimes Maya has, and "n" to represent the number of nickels.
If she has three times as many dimes as nickels, we have:
Then, if the total value she has is $1.40, we have:
(Each dime is worth $0.10 and each nickel is worth $0.05)
Substituting the value of "d" from the first equation in the second one, we have:
Now, finding the value of "d", we have:
So Maya has 12 dimes and 4 nickels.