I have so much gold and need to buy two items to craft something, I want to know how much of each I can buy if I need one of each for the synth.
I know price(x)+price(y)=gold will give me the maximum I can buy of both, but two problems, I forgot how to solve this equation (Yeah I know >_>) and also that doesnt take into account I need one of each
I guess the first step is remembering how to solve it, I remember there are three ways to do it, two of them being substitution and I dont remember the name of the other one, but it was like canceling them out but it doesnt really work for complicated equations.
x=(gold-price(y))/(price of x)
Then substitute into the original equation right?
price of x((gold-price(y))/(price of x))+price(y)=gold
And that's solvable... I think?
If that's right, then I just forgot basic principles of math and need help solving because I'm obviously doing something very wrong
100x+50y=500
x=(500-50y)/100
100((500-50y)/100)+50y=500
(50000-5000y)/100)+50y=500
500-50y+50y=500
...wait what 1=1
Wait I think I remembered something
I have to solve to go back and create a formula for y an substitute x into that to solve for x then substitute that into the original problem to find y I think. Man this would've been simpler if I could remember what kind of problem this was to look up examples.
100x+50y=500
x=(500-50y)/100
y=(500-100x)/50
x=(500-50((500-100x)/50))/100
x=(500-500-100x))/100
x=(-100x))/100
x=-x
......wait what I'm so terrible I cant remember shit
After I remember how to solve this fucking thing (or even if I did the formula right) it'll show how much I can buy of each optimally but not take into account how much of each I need so my next step after that will be to manipulate the formula for one of each then that should even be easily manipulated to create a formula if I have a synth that requires different amounts of each item
XI Wiki


