The owner of a large house decided to spend some money making it more secure. An expert analysed the situation and said that for $5000 the security rating, R, of the property would rise from its current score of 30 points to 100 points. Every $500 spent after that would lift the rating by 5 points.
The owner feels that the more security devices he pays for the more tedious he is going to find it to enter and leave his property with all that he will have to remember lock/unlock. He feels there is an owner convenience rating, C, which will go down by 2 points, from an initial 100 points, for every $500 he spends over the $5000 that he accepts is necessary.
As both the security rating and the convenience rating interest him he decides to multiply them together to form the secure but not inconvenient rating, Z.
Clearly showing your use of calculus, determine how much the owner should spend on security to maximise Z.