I am trying to figure out what payment is necessary to cover both the payment processing fees and the state's gross receipts tax.
The payment processing fee is $0.30 plus 2.9% of the purchase price plus gross receipts tax and the gross receipts tax is 1.5% of the purchase price plus the payment processing fee.
The variables are:
- $x$ = purchase price
- $y$ = necessary payment
- $a$ = payment processing fee
- $b$ = gross receipts tax
The formulas are:
- $y=(x+a+b)$
- $a=(x+b) \cdot 0.029+0.3$
- $b=(x+a) \cdot 0.015$
The equation grows infinitely since I can't solve $a$ without solving $b$ and I can't solve $b$ without solving $a$.
I don't remember what this type of math is called so I can't research how to solve for $y$.
This type of math is called "solving a system of linear equations". You should be able to find it in any sort of algebra or precalculus book.
You should take the bottom two equations
$a=(x+b) \cdot 0.029+0.3$
$b=(x+a) \cdot 0.015$
We have $2$ equations and $2$ unknown variables ($a$ and $b$). Using the techniques of solving a system of linear equations, we should be able to reduce this to $a =$ "stuff with $x$" and $b=$ "other stuff with $x$". Then you can plug these into your first equation, and you have $y$.
Let me know if you need more details. Going to sleep now.