Louise has 20 red pencils * 2 = <<20*2=40>>40 blue pencils.

She therefore has 20 red pencils + 40 blue pencils = <<20+40=60>>60 green pencils.

In total, she has 20 red pencils + 40 blue pencils + 60 green pencils + 40 yellow pencils = <<20+40+60+40=160>>160 pencils.

As each box holds 20 pencils, she needs 160 pencils / 20 pencils/box = <<160/20=8>>8 boxes.

# Answer

8
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Louise is organizing her pencils, and decides she wants her boxes arranged by color. Each box holds 20 pencils each. She has 20 red pencils, twice as many blue pencils, 40 yellow pencils, and has as many green pencils as she has red and blue pencils combined. How many boxes does Louise need?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
8
Louise is organizing her pencils, and decides she wants her boxes arranged by color. Each box holds 20 pencils each. She has 20 red pencils, twice as many blue pencils, 40 yellow pencils, and has as many green pencils as she has red and blue pencils combined. How many boxes does Louise need?
train