I'm trying to find a more efficient general manner of approaching solving linear equations and I wanted to check if this makes sense: When we have a linear equation e.g., 17x+19y=140 and we need to determine the solution or determine the number of valid combinations present, you can follow the strategy
1. Use statement 1 to find the solution quickly,
2. Then plug the values in and determine what the max values of x and y can be (17 * 8<140 and 19*7<140)
3. Now determine if we can adjust the solution say the solution we got from statement 1 is x = 6 and y = 2
a. Notice that if we reduce x: 6->5 and y: 2->3 then the amount reduces by 17 and increases by 19 (a difference of 2 which is excess)
b. So we need an amount by which the decrease in 17 is negated by an increase in 19
c. That would be the LCM of 17 and 19 which is greater than 140, therefore there is only one solution
If you cannot determine the solution from statement 1's assistance, then you can right out the values of 19 till 140 and 17 till 140 and see what combination adds to 140.
- This can be made more efficient by determining the units' digits that add to 10