p=number of pennies

2 times the number of pennies is how many nickels there are... nickels are 5 pennies though.

4 more dimes than nickels (there are (2p) nickels), and dimes are 10 times more than p.

the total number of dimes and nickels is 2p and 2p+4 .... but a quarter is 25 times that..

Don't hate me if I'm wrong.. this is complicated but, I believe the equation works out:

p + (2(5p)) + ((2p+4)*10) + (25*(2p+2p+4))

simplify.