Question: Calculating a given total using only given specific values tia sal22

Calculating a given total using only given specific values

Greetings All

I'm trying to figure out a way to calculate a given total
using only given specific values.

Example:
The total given is 46


The numbers I can use are 56,38,20,12,4, and 1


so the numbers it should use and come back with would be highest to lowest
so it should be 38,4,and 4.   Because these will add up to 46.  Is there a name given to this type of mathematics?  And does anyone have an example of how to do this?


tia sal22

Please Wait...