How many beats are in each of these measures?

Answer: 3
Explanation:
A quarter note is one beat, an eighth note is 1/2 beat, and a half note is 2 beats.
The first measure is made up of a quarter note, two eighth notes, and another quarter note, which adds up to 3 beats, since 1 + 1/2 + 1/2 + 1 = 3.
The second measure is made up of a half note and a quarter note, which again adds up to 3 beats, since 2 + 1 = 3.