Answer
The number of months is 5 and the total cost is $165.
Work Step by Step
Consider the equation for the condition at which both the clubs have the same total cost
$25x+40=15+30x$
Here, x is the number of months
Now, solve the above equation
$\begin{align}
& 25x+40=15+30x \\
& 30x-25x=40-15 \\
& 5x=25 \\
& x=5
\end{align}$
Now, calculate the total cost after the above obtained number of months for each club
$25\left( 5 \right)+40=\$165$
Thus, the number of months after which the total cost at each health club is same is 5 months and the total cost for each club at this time is $165.