Writing Complex Sentences

When two simple sentences are closely related, you can join them using a comma and a coordinating conjunction—and, but, or, nor, for, so, yet.
My teacher told me I never had a right to be bored, and he was right.
(The result is a compound sentence.)