Get–Around Cab Company charges $2.50 upon entry and $2 per mile. Write the function that represents the cost C of a ride of m miles

To write the function that represents the cost C of a ride of m miles, we need to consider two components: the initial cost upon entry and the cost per mile.

1. Initial cost upon entry: The cab company charges $2.50 upon entry.
This component is a fixed cost regardless of the number of miles traveled.

2. Cost per mile: The cab company charges $2 per mile.
This component varies based on the number of miles traveled.

To calculate the total cost, we need to add the initial cost upon entry to the cost per mile multiplied by the number of miles traveled.

Let's express this in a mathematical function:

C(m) = 2.50 + (2 * m)

Where:
C(m) represents the total cost of a ride of m miles.
2.50 represents the initial cost upon entry.
2 represents the cost per mile.
m represents the number of miles traveled.

Using this function, you can input the number of miles traveled (m) to calculate the total cost (C). For example, if the ride is 5 miles long, you would substitute m with 5 in the function and calculate C(5).

C = 2.50 + 2m