This is because c, or cost is equal to 30 dollars a day as a base fee or 150 total for five days plus 0.02 per mile. So, if you multiple the mileage driven by 0.02 and add 150 for the 30$ per day at 5 days. This is your equation
These are just different ways you could write that since it is clear you have a multiple choice question