Can someone help me find the formula I need to get started with this problem?

Which amounts of money can be formed using just dimes and quarters?

I thought the formula should be something along the lines of 10x+25x=y but then I got to thinking that maybe the variable should be different with the dime and quarter because they would not always have to be the same.