Neither 2 nor 7 have inverses mod 6 or 7, respectively, so the expressions in (a) and (b) cannot really evaluated... At least we can evaluate (c) :
5.8m questions
7.5m answers