Let us assume p=It rains,q=cricket match will not be played.
I1: If it rains then the cricket match will not be played (p->q)
The cricket match was played. (~q)
Inference: There was no rain.(~p)
p->q
~q
~p (Modus tollens )
Thus I1 is an inferenece.
I2:can be written as
p->q
~p
~q
Not an inference.
Hence answer is B