Answer:
Dave uses 240g of flour and 40g of sugar.
Explanation:
Now the ratio of David's ingredients is given as:
Flour:Butter:Sugar=6:4:1
Dave uses 160g of butter.
Let the total mass of ingredients be x.
Sum of ratio=6+4+1=11
Therefore:

We have determined the total mass of ingredients.
We then use this to determine how much flour and sugar was used.
Flour
Proportion of Flour=6/11
Amount of flour used
=

Sugar
Proportion of Sugar=1/11
Amount of butter used
=

Therefore, Dave uses 240g of flour and 40 g of sugar.