The linear function is , where x is the number of paintings and P(x) is the amount of profit.
Substitute the value of in the above equation.
.
The amount of profit is 285.