Sue would like to join a gym. Gym A has a $56 joining fee with $3 per visit. Gym B has a $30 joining fee with a $5 per visit. Let x represent the number of visits. After how many visits would the cost of the two gyms be the same?