Whenthestormwasbrewingwehadalmostreachedourgoal,andthepermanentcampwasawelcomesight.

Please segment the words.
When the storm was brewing we had almost reached our goal, and the permanent camp was a welcome sight.