Emmet has already baked 2 pies, and he can bake 2 pies with each additional cup of sugar he buys. How many additional cups of sugar does Emmet need in order to bake a total of 40 pies?