Realizing that the 2nd phrase just repeats the first with a slight difference in pitches at the end, with a little playing around we can locate these rhythmic values at specific pitches to notate
the tune:
Ok. So the starting point for understanding periodic rhythmic notation is to “get with the beat.”
Once establishing what the beat is you probably already know there’s another important factor: the MEASURE.