By selling grain Joseph collected all the money in Egypt and Canaan, and placed it in Pharaoh's treasury.