Jason runs a bakery shop. In the month of June, he ordered some eggs but to his dismay, he realised that 245 eggs were bad eggs and threw them away. He used
2/7
of the good eggs to make bread and
2/3
of the remaining good eggs to make cakes. In the end, he had 875 good eggs left. How many eggs did he order for the month of June?