Which of the following is a compound sentence

1 answer

I went to the store to buy some groceries, and then I went to the gym to work out.