there is a book ,a ruler and 2 pens.
there are 2 pens and a ruler .
这里是就近原则.
后面紧跟的是a book所以用is
若紧跟的是2 pens用are