What to do to gain weight and muscle?

So I've started going to the gym lately, but I don't know exactly what to do to gain weight and muscle. I don't have any set plans or workouts so any advice would be great.
4 answers 4