Edit the text to remove grammar mistakes
He had to buy a present for his girlfriend's birthday but it was Sunday and all stores were closed so he had to found a solution.
He had to buy a present for his girlfriend's birthday, but it was Sunday, and all the stores were closed, so he had to find a solution.