It costs $150 per hour to rent a boat. Write a function to represent this situation where x represents the number of hours the boat is rented.

f(x)=

150x

f(x) = 150x

To write a function representing the situation where x represents the number of hours the boat is rented, we can use the formula:

f(x) = 150x

In this function, f(x) represents the cost of renting the boat for x hours. The variable x represents the number of hours the boat is rented. The constant 150 represents the cost per hour to rent the boat.