Mathematical mind boggler, very confusing possible new mathematical breakthrough
I'm not trying to make a joke here but I am very confused I been trying to figure this out for like 6 hours straight now got about 20 notepads opened up here, 15 calculators and I cant crunch it I'm always getting too much excess in the end.

Lets explain some variables here we got to work with.
Say we got

> 2566 min points / 2566 max points
> 
> 0 min xp / 4835 max xp

There is 2 types of jobs that need to use both variables (points and xp)

> Job (1) subtracts 32 points per click and adds 72 xp per click.
>
> Job (2) subtracts 10 points per click and adds 14 xp per click.


I'm trying to figure out how to calculate the excess properly. So it would waste the minimal amount of Job(1)'s to still have enough points to do as much Job(2)'s as it possibly can and still reach max xp.

Here is my equations

> amountOfJob1s = (minPoints / 32)
> 
> amountOfJob2s = (minPoints / 10)
> 
> excessXP = (amountOfJob1s * 72) - maxXP
>
> if excessXP < 0 then break


Results


> mustDoJob1s = ???
> 
> mustDoJob2s = ???


Thank you if anyone can help me figure this out so I can put a good equation here I'd appreciate it.

Either this is not mathematically possible or I just can't crunch it I do believe I have enough variables.
Mathematical mind boggler, very confusing possible new mathematical breakthrough
===

I'm not trying to make a joke here but I am very confused I been trying to figure this out for like 6 hours straight now got about 20 notepads opened up here, 15 calculators and I cant crunch it I'm always getting too much excess in the end.

Lets explain some variables here we got to work with.
Say we got

> 2566 min points / 2566 max points
> 
> 0 min xp / 4835 max xp

There is 2 types of jobs that need to use both variables (points and xp)

> Job (1) subtracts 32 points per click and adds 72 xp per click.
>
> Job (2) subtracts 10 points per click and adds 14 xp per click.


I'm trying to figure out how to calculate the excess properly. So it would waste the minimal amount of Job(1)'s to still have enough points to do as much Job(2)'s as it possibly can and still reach max xp.

Here is my equations

> amountOfJob1s = (minPoints / 32)
> 
> amountOfJob2s = (minPoints / 10)
> 
> excessXP = (amountOfJob1s * 72) - maxXP
>
> if excessXP < 0 then break


Results


> mustDoJob1s = ???
> 
> mustDoJob2s = ???


Thank you if anyone can help me figure this out so I can put a good equation here I'd appreciate it.

Either this is not mathematically possible or I just can't crunch it I do believe I have enough variables.