It Could Be Verse Puzzle

The Puzzle:

It Could Be Verse
Horace bought some cakes today
As explained in this song.
Now, as he took his change away
He thought that it was wrong.
Some of the cakes were 30 cents,
And 40 cents the rest.
$1.50 change just made no sense,
It caused him great unrest.
Ten dollars he gave to pay for them:
Those 30 and 40c cakes.
But he wants us to say for him
How many of each did he take ?


How many ways can this be done ?
What is the greatest number of cakes Horace could have bought ?



.
-\./^\./-


Do you have the answer? Check against our solution!