A user is charged Php 300 monthly for a particular

mobile plan, which includes 100 free text messages.
Messages in excess of 100 are charged Php 1 each.
Represent the amount a consumer pays each month
as a function of the number of messages m sent in a
month.
t = amount a costumer pays
m = messages sent

300 + (m-100) = m

To represent the amount a customer pays each month as a function of the number of messages sent, we need to consider two scenarios:

1. If the number of messages sent (m) is within the free text message limit of 100:

In this case, the customer is charged a fixed monthly amount of Php 300, regardless of the number of messages sent. So, the amount paid (t) is always Php 300.

2. If the number of messages sent (m) exceeds the free text message limit of 100:

In this scenario, the number of messages beyond 100 is charged at a rate of Php 1 each. So, we need to calculate the additional cost for the excess messages and add it to the fixed monthly amount.

Let's break down the calculation:

- First, find the number of messages beyond the free limit:
excess_messages = m - 100

- Next, calculate the cost for the excess messages:
excess_cost = excess_messages * Php 1

- Finally, calculate the total amount paid each month (t):
t = Php 300 + excess_cost

In summary:
- If m ≤ 100, the amount paid (t) is Php 300.
- If m > 100, the amount paid (t) is Php 300 + (m - 100) * Php 1.

This function represents the amount a customer pays each month as a function of the number of messages sent.