Задание

Choose the correct variant.

While I was on my way home, I stopped ___________________________ some bread.

to buy

buying

buy

to have bought