A simple sentence has one finite verb (one which is not an infinitive, gerund, or participle). Compound sentences consist of more that one independent clause (more than one finite verb). Complex sentence contains one independent clause and at least one dependent.
1. complex sentence
2. compound sentence
3. complex sentence
4. compound sentence
5. compound sentence
6. complex sentence
7. complex sentence
8. simple sentence
9. simple sentence
10. compound sentence
Simple multiplication:

And

So do you now see how they are the same? :)
A subject usually precedes a verb