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].