A candy store sells boxes of candy containing caramels and cremes. Each box sells for 12 dollars and 50 cents and holds 30 pieces of candy (all pieces are the same size.) If the caramels cost 25 cents to produce and the cremes cost 45 cents to produce, how many of each should be in a box to make a profit of 3 dollars?

For some reason, I am thinking that two equations in two unknowns applies here.

Let x = number of caramels at 25 cents each

Let y = number of cremes at 45 cents each

There are 30 pieces per box.

My first equation should be

x + y = 30. Yes?

Each box cost 12 dollars and 50 cents.

I think my second equation should be 0.25x + 0.45y = 12.50.

Is any of this correct?