hi i have a lab to do and i'm stuck on how to start a method

i have 10 coins and i want to write a method that tells me the fewest amount of coins needed to add up to 100 - 1 dollar

coins are randomly generated - values are 1,5,10,25

in a coin class

the method is in the usecoin class

i understand that there is a possibility of all 10 coins dont add up to 100

i'm going to ignore that for now and maybe add an error message not enough coins

can anyone help give me some ideas on how to start this method?