How does the sentence end?

James regretted eating the unripe mango and later accepted to eat the apple instead and he found out the
apple is sweet.