Answer the question based on the following information.

A young girl Roopa leaves home with x flowers, goes to the bank of a nearby river. On the bank of the river, there are four places of worship, standing in a row. She dips all the x flowers into the river. The number of flowers doubles. Then she enters the first place of worship, offers y flowers to the deity. She dips the remaining flowers into the river, and again the number of flowers doubles. She goes to the second place of worship, offers y flowers to the deity. She dips the remaining flowers into the river, and again the number of flowers doubles. She goes to the third place of worship, offers y flowers to the deity. She dips the remaining flowers into the river, and again the number of flowers doubles. She goes to the fourth place of worship, offers y flowers to the deity. Now she is left with no flowers in hand.

If Roopa leaves home with 30 flowers, the number of flowers she offers to each deity is