You can produce sets for the Main item.
Right click on the grid and click the production set menu to open production set form.
Enter a produce qty of 5 for the main item then produce qty by set and produce qty total will also be computed while production set button will be enabled.
To produce set, press production set button
For the main item, the produce qty total will be added to the qty on hand.
For the set items, the produce qty total will be deducted from the qty on hand.