Follow the examples given. The first thing you write is the author's name (if provided) with their last name first. Then you write the title of the book; either italicize or underline it. Then comes the publisher, followed by the city where published, followed by the year. Use the punctuation they give in the examples, and you're golden.