Answer: Gym A is preferred to Gym B.
Step-by-step explanation:
Since we have given that
Gym A charges as follows:
Cost of gym per month = $39.95
Fees for gym A would be

Here, x denotes the number of months.
Gym B charges as follows:
Cost of gym per month = $14.95
Cost of per visit = $2.95
Fees for gym B would be

Here, y denotes the number of visits.
Let us assume that x = 1 month
y = 30 visits as each month has atleast 30 days.
So, Amount to be paid for gym A would be $39.95
Amount to be paid for gym B would be

So, we get that gym A is cheaper than gym B.
Hence, Gym A is preferred to Gym B.