Complex sentence: Tew was commissioned to the 2nd North Carolina Infantry, which was then attached to the brigade of Brig.
Split into simpler sentences: Tew was commissioned to the 2nd North Carolina Infantry. The 2nd North Carolina was attached to the brigade of Brig.