Use the following equations to find the amount of males and females in the class:


x represents the males in the class, and y represents the females in the class.
Because x = y + 4, we can substitute x in the first equation:


Combine like terms.

Subtract 4 from both sides.

Divide both sides by 2 to get y by itself.

Because we know what y is, we can plug in its value into the first equation:

Subtract 12 from both sides to get x by itself.

There are
16 males and 12 females in the class.