p: it is sunday q: school will open
so If it is Sunday then school will not open is represented as
p-->~q so it can imply q->~p (by contrapositive) so first inference is correct
for second
If it is Sunday then school will not open is represented as
p-->~q
given ~p so it can not imply ~p-->q (inverse impliation) unless its converse(~q->p ) is true which is not true here
here ans is B
note only contapositive holds true in all cases