Jax bought exactly enough trees to plant eight equal rows. Then one tree died and couldn't be planted, but he still had enough trees left to plant exactly nine equal rows. After that, a tree was stolen, but he still had enough trees left to plant exactly ten equal rows. If he bought the least number of trees satisfying these three conditions, how many trees did he buy?
By brute force I find 352 trees
I started with multiples of 8 that were 2 more than a multiple of 10 .....then tried subtracting one to see if 9 would divide evenly.