Write an equation for the following word problem. Use b for the number of boys and g for the number of girls.

There are eight fewer boys than girls in Mrs. Davis' class. How many boys are in the class?

b = g - 8