It has been awhile since I have been in math class. I have built a program that does works, but it uses for loops and can take forever to come up with the answer. I am hoping there is a mathematical way to solve the following problem.
I am given Total pieces and Total Postage
(x + y + z) = Total pieces
x, y, z are also integers
(.34x +.465y + .44z) = Total postage
Total pieces = 331
Total postage = 112.665
The answer is x = 330 y = 1 and x = 0