Write an equation and solve.

Some girls were playing tag on a playground. The number of girls was three less than twice the number of boys. If there are 7 girls, how many boys were playing tag?