We know that the other two bills are based of of a constant value for fives. Therefore, the fives can be x. There are 3 less tens than fives, so the number of tens equals x-3. We double the number of fives to get the number of ones, so the number of ones equals 2 times x. When we add all 3 of those together, we get our total number of 41. If you want to solve, you have to solve for x, then you can plug it back into the formula. I hope this helps!
I used long division with polynomials to help me find the other factor to this problem. Divide x cubed -5x squared -6x+8 by x+2 to get x squared -5x+4.