Here's how they work:
As conjunctions:
* After: Connecting two clauses, indicating sequence.
* *Example:* "We went to the store, after we finished eating."
* Before: Connecting two clauses, indicating priority or time order.
* *Example:* "She studied hard before the exam."
As prepositions:
* After: Showing time or place following something.
* *Example:* "The party will be held after dinner."
* Before: Showing time or place preceding something.
* *Example:* "I saw him before the meeting."
Let me know if you'd like more examples!