Maximize calories when calories and dollar amounts were given. Dollar amount cannot exceed given Allowed amount.