You can use a Custom HTML field and substitute them in using substitutions as shown on the below substitution tutorial. You can also substitute one field into another fields Layout under Parameters > Layout.
www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb
Alternatively you can write custom CSS to make them display side by side assuming the fields are normally displayed 1 after another. The below for example would caused the First Name and Last Name fields to display side by side.
Code:
#cbfr_46,
#cbfr_48 {
display: inline-block;
width: 50%;
}
46 is the ID of the firstname field while 48 is the id of the lastname field. Using this you can add the ids of your fields to display them side by side as needed.