25% of total mangoes which are rotten is 1250. Find the total number of mangoes in the basket. Also , find the number of good mangoes.