Let \( x \) be the number of visits.
For the first plan, the cost is \( 10x \).
For the second plan, the cost is \( 30 + 4x \).
To find the number of visits where both plans cost the same, set the two equations equal to each other:
\[ 10x = 30 + 4x \]
Now, solve for \( x \):
- Subtract \( 4x \) from both sides:
\[ 10x - 4x = 30 \]
- This simplifies to:
\[ 6x = 30 \]
- Divide both sides by 6:
\[ x = 5 \]
Thus, the plans would cost the same at 5 visits.