The first tree gives him 8 red apples because 20 x .4 = <<20*.4=8>>8

The second tree gives him 10 red apples because 20 x .5 = <<20*.5=10>>10

He gets 18 red apples because 10 + 8 = <<10+8=18>>18

# Answer

18
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Brogan has two apple trees and goes to harvest them. The first tree is 40% red and 60% green. The second tree is 50% red and 50% green. If they each produce 20 apples, how many red apples does he get?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
18
Brogan has two apple trees and goes to harvest them. The first tree is 40% red and 60% green. The second tree is 50% red and 50% green. If they each produce 20 apples, how many red apples does he get?
train