Some students were playing tag on a playground. The number of girls was less than twice the number of boys. If there were 7 girls, how many boys were playing tag? Write an equation and solve.