A plumber charges a flat fee of 79 to visit a home and examine a clogged drain . The plumber charges an additional $ 24 per hour spent fixing the drain . The total cost , C ( in dollars ) , for fixing a drain that takes h hours is given by the following . C = 24h + 79