Earthed loops problem

Question

Hints

Answer