solve 6 through 10