Select the correct answer.

Mary pays [tex] \$28 [/tex] for a one-month gym membership and has to pay [tex] \$2 [/tex] for every fitness class she takes. This is represented by the following function, where [tex] x [/tex] is the number of classes she takes:
[tex]\[ f(x) = 2x + 28 \][/tex]

What is the total amount Mary has to pay if she takes 12 classes?

A. [tex] \$54 [/tex]
B. [tex] \$52 [/tex]
C. [tex] \$24 [/tex]
D. [tex] \$28 [/tex]



Answer :

To determine the total amount Harry has to pay if he takes 12 fitness classes, we can use the given function:

[tex]\[ f(x) = 2x + 28 \][/tex]

In this function:
- [tex]\( 2 \)[/tex] represents the cost per class,
- [tex]\( x \)[/tex] represents the number of classes,
- [tex]\( 28 \)[/tex] represents the monthly membership fee.

Given that Harry takes 12 classes, we substitute [tex]\( x = 12 \)[/tex] into the function to calculate the total amount:

[tex]\[ f(12) = 2 \cdot 12 + 28 \][/tex]

Let's break this down step-by-step:
1. Calculate the cost of 12 classes:
[tex]\[ 2 \cdot 12 = 24 \][/tex]

2. Add the monthly membership fee to the cost of the classes:
[tex]\[ 24 + 28 = 52 \][/tex]

Therefore, the total amount Harry has to pay is \$52.

The correct answer is [tex]\( \boxed{52} \)[/tex].