Children are dividing a bag of marbles among themselves. The first child took one marble and a tenth of the remaining marbles, then the second took two marbles and a tenth of the remaining, then the third took three marbles and a tenth of the remaining, and so on, until the last child took all that was left.
How many children were there and how many marbles did each child get, if all the children received the same number of marbles?