Jonah is buying packages of gumballs with 10 each. His bought bag him a large bag with 38 gumballs in it. Now he has 158 gumballs. How many packages did he buy? Use algebra to determine the answer.

19 3 7 12

Let's assume that Jonah bought x packages of gumballs.

Each package contains 10 gumballs, so the total number of gumballs from the packages is 10x.
If he also bought a large bag with 38 gumballs, then the total number of gumballs Jonah has is 10x + 38.
According to the information given, Jonah has 158 gumballs in total.
Therefore, we can write the equation 10x + 38 = 158 to represent this situation.
Now let's solve this equation for x:
Subtract 38 from both sides: 10x = 120
Divide both sides by 10: x = 12
Thus, Jonah bought 12 packages of gumballs.