Josh says to Emma, "If you give me eight dollars, we will have an equal amount of money." Emma responds, "That may be true, but if you give me eight dollars, I will have twice as much money as you." What is the sum of the amount of money Josh and Emma have?