Answer:
![q = -6p + 104](https://img.qammunity.org/2022/formulas/mathematics/college/zpx9e092ivt8cgx3jw6gnukefed3py8mmb.png)
Explanation:
Linear function:
A linear function has the following format:
![q = mp + b](https://img.qammunity.org/2022/formulas/mathematics/college/vgppy3nj7vpvi2hudlexjno5is088dox9j.png)
In which m is the slope and b is the q-intercept.
One week you charged $4 per guest and averaged 80 guests per night. The next week you charged $10 per guest and averaged 44 guests per night.
This means that we have these following points: (4,80), (10,44).
Finding the slope:
With a pair of points, the slope is given by the change in q divided by the change in p.
Change in q: 44 - 80 = -36
Change in p: 10 - 4 = 6
Slope:
![m = (-36)/(6) = -6](https://img.qammunity.org/2022/formulas/mathematics/college/ncjkab90x3btz52bl0gyhaf9qdy2buln07.png)
So
![q = -6p + b](https://img.qammunity.org/2022/formulas/mathematics/college/k3dwmccmreq5lxseha8fc7qecyb5sl4tgi.png)
Finding b:
We replace one of the points. Replacing (4,80).
![q = -6p + b](https://img.qammunity.org/2022/formulas/mathematics/college/k3dwmccmreq5lxseha8fc7qecyb5sl4tgi.png)
![80 = -6*4 + b](https://img.qammunity.org/2022/formulas/mathematics/college/zn0qb5n4z4wacd3i64qzidragx6vtgyphv.png)
![b = 104](https://img.qammunity.org/2022/formulas/mathematics/college/jx9533gnh33b79mr2q10oh9h2el6rf7skp.png)
So
![q = -6p + 104](https://img.qammunity.org/2022/formulas/mathematics/college/zpx9e092ivt8cgx3jw6gnukefed3py8mmb.png)