A charity collected a certain number of toys. When they distributed the toys by giving 6 toys to each family, they had 10 toys left over. If they had collected 20 more toys, they could have given 7 toys to each family with no toys left over. How many families received toys?