This is the setup you need to know how to reach. Black's king is on b8, the rook is right beside it on b7, and if Black were to move, every legal move would lose. The catch is simple: it is your move, not Black's.