In which sentence is a comma used correctly?

"I went to the store, and I bought some apples."