Let's solve each part of the question one at a time.
Part 1: Doreen's Packets of Crackers
Doreen gave away \( \frac{5}{8} \) of her crackers, which equaled 15 packets. We can set up the equation as follows:
\[ \frac{5}{8} \times x = 15 \]
where \( x \) is the total number of packets of crackers Doreen had at first. To find \( x \), we first solve for \( x \):
- Multiply both sides by \( \frac{8}{5} \) to isolate \( x \):
\[ x = 15 \times \frac{8}{5} \]
- Calculate the right side:
\[ x = 15 \times \frac{8}{5} = 15 \times 1.6 = 24 \]
So, Doreen had 24 packets of crackers at first.
Part 2: David's Sweets
David has \( \frac{5}{9} \) of his sweets as red, and we know he has 15 red sweets. We can set up the equation:
Let \( y \) be the total number of sweets David has. Then:
\[ \frac{5}{9} y = 15 \]
To find \( y \), multiply both sides by \( \frac{9}{5} \):
\[ y = 15 \times \frac{9}{5} \]
Next, calculate:
\[ y = 15 \times 1.8 = 27 \]
Thus, David has 27 sweets altogether.
Summary
- Doreen had 24 packets of crackers at first.
- David has 27 sweets altogether.