A classroom contains an equal number of boys and girls. If 14 girls leave, twice as many boys as girls remain. What was the original number of students present?