The bishops have $16$ ways-four light squares times four dark squares. Then if you choose three of the remaining six squares (${6 \choose 3}=20$ ways) you know where the king goes. Now choose one of the three squares for the queen.
The bishops have $16$ ways-four light squares times four dark squares. Then if you choose three of the remaining six squares (${6 \choose 3}=20$ ways) you know where the king goes. Now choose one of the three squares for the queen.