How do you set up a separate contact record when an attendee wants to bring a guest to a function?
There are a number of different ways to do this - you should also search this help site for related articles.
In Setup Panel
Select the Functions module.
Choose a function where you want to record guest names.
...