<human>:  Delta, Beta and Gamma decided to share 40 donuts. Delta took 8 donuts and Beta took three times as many as Gamma. How many donuts did Gamma receive?
<bot>: Define a variable ** Let x = the number of donuts Gamma took.
How many donuts did Delta and Beta have? ** The total donuts Gamma and Beta have is 40 - 8 = <<40-8=32>>32 donuts.
How many donuts did Beta take? ** 3x is the number of donuts for Beta.
How many donuts did Beta and Gamma have? ** 3x + x is the number of total donuts for Beta and Gamma.
How many donuts did Beta and Gamma have? ** If we add the two x terms, we get 4x = 32.
How many donuts did Gamma take? ** If we divide both sides by 4, we get x = 8, so Gamma has 8 donuts.
#### 8