Two schools can teach 400 students, so in total, they can teach 2 * 400 = <<2*400=800>>800 students.

The other two schools can teach 340 students, which gives 2 * 340 = <<2*340=680>>680 students in total.

So all four schools can teach 800 + 680 = <<800+680=1480>>1480 students at a time.

# Answer

1480
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
In a town, there are four primary schools. Two of them can teach 400 students at a time, and the other two 340 students at a time. How many students at a time in total, can these four primary schools teach?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
1480
In a town, there are four primary schools. Two of them can teach 400 students at a time, and the other two 340 students at a time. How many students at a time in total, can these four primary schools teach?
train