A simile, it's comparing two things using the words "like" or "as" (in this case "like")
A compound sentence.
In a compound sentence, simple sentences become known as independent clauses; the two independent clauses together make up a compound sentence. ... The second is a simple sentence consisting of one independent clause with one subject and two verbs (or one verb used twice)
Example:
A man may die, nations may rise and fall, but an idea lives on.
I want to lose weight, yet I eat chocolate daily.
More examples here:
https://englishstudyhere.com/sentences/20-compound-sentences-in-english/
That would be a compound-complex sentence.
Answer:
By making each compared item or idea in your sentence follow the same grammatical pattern, you create a parallel construction.
Explanation:
I think you need to read The Fiery Planet,and do it yourself it will help you succeed in life.:)