How to combine paths in illustrator

Thank you! Each one of these lines is coming up as a separate step. I’m brand new to Illustrator and just when I think I’ve got it something like this happens lol.