Hector purchased a container of gumballs. He gave 4 to Todd, then he gave twice as many as he had given Todd to Alisha, and then he gave 5 less than four times as many to Bobby as he had given to Alisha. If Hector had 6 gumballs remaining, what is the total number of gumballs that Hector purchased?
Let's be accurate as possible and think first.
45
Hector gave to Alisha twice as many as he had given Todd, for a total of 4 * 2 = 8 gumballs,.

Hector gave 5 less than four times as many to Bobby as he had given to Alisha, or a total of (8 * 4) - 5 = 27 gumballs.

If Hector had 6 gumballs remaining, he originally purchased 4 + 8 + 27 + 6 = 45 gumballs.

.

So, the answer is 45