We have been given the price-demand equation for avocados is 10 p + x = 25.
Let us solve the equation for x.
[tex]10 p + x = 25[/tex]
Subtract 10p to both sides of the equation
[tex]x=25-10p[/tex]
Revenue function is given by
[tex]R(x)=xp\\ \\ R(p)=(25-10p)p\\ \\ R(p)=25p-10p^2[/tex]
Therefore, the revenue function in terms of weekly price for avocados is given by
[tex]R(x)=25p-10p^2[/tex]