The revenue from selling x hats is r(x)=18x The cost of buying x hats is c(x)=8x+30. The profit from selling x hats is p(x)=r(x)-c(x)
Write a function for p(x), the profit from selling x hats

The revenue from selling x hats is rx18x The cost of buying x hats is cx8x30 The profit from selling x hats is pxrxcx Write a function for px the profit from se class=