1. ## pricing algebra

Hey guys,

Quick q that my friend posed and am struggling with.

Imagine that something has a difference price for weekends and for weekdays. Imagine that differnce is x and that the price of weekdays is higher.

Say you know the average price for the month, the number of weekdays and weekend days.

How do you calculate the weekly price and the weekend price from available info?
Thanks alot!!

2. Let "x" be the weekday price and "d" be the difference. Then the weekend price is x+ d. Now suppose there are m weekdays and n weekend days in the month. The average price would be
$\frac{mx+ n(x+ d)}{m+ n}= p$
$\frac{(m+n)x+ d}{m+n}= p$
$x+ \frac{d}{m+n}= p$
$x= p- \frac{d}{m+ n}$
$x= \frac{p(m+ n)- d}{m+ n}$