Rib stitches are two sided. One side is purl and the other is knit. So if you end on purl stitches you turn the work work and start with knit stitches.
The general way to remember ribbing of any type is knit the knits and purl the purls...as they face you. As they face you means the stitches that you are seeing as you start that row. If the stitch looks like the V's or a scarf around a neck then you knit those. If the stitch is a loop up close to the needle, you purl those. See the sample.
Learn what the stitches look like it'll help you the rest of your knitting life.
When asking questions ALWAYS post the name and a link for the pattern if you have it.