I'm trying to find a formula for this scenario:
I need \$$302$.
I gain \$$2$ every second.
I gain \$$5$ every $5$ seconds.
When will I reach \$$302$? Both of these rates are working together.
Visually:
$2 $2 $2 $2 ($2 $5) $2 $2 $2 $2 ($2 $5)
I'm able to find the answer by diving by \$$15$ and figuring out how many sequences there were, but I'm looking for an equation.
$302 / 15 = ~20$
$20$ x $5$s + $1$s = $101$s