well, I guess this is a start but not the correct method.

I think you may have to use algebra in this but

through the process of trail and error

I found the number of soldeirs to be:

23

since you now know the answer, maybe someone from there could help fit it into an equation?

Sorry, I can't help much but at least I found a part of the answer