Answer:
The sentence "How can you use former and latter in a sentence" is already a sentence. The former being a question, and the latter being the answer. I did it again.
Another example:
Fido and Fluffy are my favorite pets; the former being my dog and the latter being my cat.