In music notation, a whole note is equal to 4 beats. A half note is equal to 2 beats, and a quarter note is equal to 1 beat. Therefore, if we have two half notes (4 beats) and four quarter notes (4 beats), the total is 8 beats. Dividing 8 beats by a whole note (4 beats) gives us 2, which is the answer.