f(y)={3y if 0y1 and 0 otherwise.

The grocer can buy a bin's worth of candy for 0.3 dollars and sell a bin's worth for 0.9 dollars. What amount of candy, C, in bins, should the store owner purchase to maximize expected daily profit?

*I've tried differentiating a few ways, but nothing seems to be working. Please help!