Let y be the cost of the party and x the number of guests. Since we are told to assume that the relationship is directlly proportional, we have that
[tex]y=kx[/tex]where k is a positive constant.
We are told that y is 40 whenever x is 5. So we have the equation
[tex]40=k\cdot5[/tex]so, multiplying both sides by 5, we get
[tex]k=\frac{40}{5}=8[/tex]So we have the equation
[tex]y=8x[/tex]Now, we are interested in finding y when x=6. So we have that
[tex]y=8\cdot6=48[/tex]So the cost for a party of 6 is 48.