Duncan walked 3 blocks from his house to the bus stop. He rode the bus 12 blocks to the post office. Later, he came home the same way. How many blocks did Duncan travel in all?