On a Halloween night ten children with candy were standing in a row. In total, the girls and boys had equal amounts of candy. Each child gave one candy to each person on their right. After that, the girls had \(25\) more candy than they used to. How many girls are there in the row?