Button holes in 1x1 rib

Help please! I’m making button holesin a baby cardigan and have to rib 2, cast off 2. So would I rib 2, then rib another 2, cast 1 off then rib another and cast another off.

Or would I rib 2 then rib another 1, cast 1 off, then rib another and cast 1 off?

Hope that makes sense x

Welcome to KnittingHelp!
Your first method is the way to go: rib 2, rib 2more, cast off 1,rib 1, cast off 1. Enjoy finishing the sweater.