Shelly has an incomplete recipe of a dish. She knows that for every 7 cups of flour, she should add 2 cups of butter, and for every 3 cups of butter, she should add 2 cups of sugar. If the dish Shelly is cooking requires 5 cups of flour, how many cups of sugar would she need?