A group of women working together at the same rate can build a wall in $45$ hours. When the work started, all the women did not start working together. They joined the worked over a period of time, one by one, at equal intervals. Once at work, each one stayed till the work was complete. If the first woman worked 5 times as many hours as the last woman, for how many hours did the first woman work?