The number of blocks traveled on the way to the post office was 5 + 20 = <<5+20=25>>25.

Pete traveled 25 × 2 = <<25*2=50>>50 blocks in all.

# Answer

50
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Pete walked 5 blocks from his house to the bus garage in Houston. He rode the bus 20 blocks to the post office to get some stamps. Later, he came home the same way. How many blocks did Pete travel in all?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
50
Pete walked 5 blocks from his house to the bus garage in Houston. He rode the bus 20 blocks to the post office to get some stamps. Later, he came home the same way. How many blocks did Pete travel in all?
train