A group of children share marbles from a bag. The first child takes one marble and a tenth of the remainder. The second child takes two marbles and a tenth of the remainder. The third childd takes three marbles and a tenth of the remainder. And so on until the last child takes whatever is left. Knowing that all children end up the same number of marbles, how many children were there and how many marbles did each one get?