which senteced is punctuated correctly

Answer:
Nate took the dog out for a walk, before he did his homework.
Explanation:
Hope this helped!
Answer:
The one you have selected is the correct answer!
Before Nate did his homework, he took the dog out for a walk.
Explanation:
The second sentence has too many commas. The correct punctuation for the third and fourth sentences would be: Nate took the dog out for a walk before he did his homework.
hope this made sense! :)