For the 1st hour the cost is $50 whatever is the duration (providing it's 1 hour max.
From one hour and onward the cost becomes an additional $25 per quater of an hour.
If y is the cost and x the number of hours, then the equation becomes :
y =50 + 0.25.x or y =1/4x + 50