Return to List## Solve: Make Chocolate

### Related Lessons

We want make a package of `goal`

kilos of chocolate.
We have `small`

bars (1 kilo each) and `big`

bars (5 kilos each).
Return the number of small bars to use, assuming we always use big bars before small bars.
Return -1 if it can't be done.
No loops are needed to solve this problem!

fun makeChocolate(

small: Int,

big: Int,

goal: Int,

): Int {

return 0 // You may need to remove this starter code

}

Stuck? You may find these lessons helpful: