Electric cars problem

Question

Hints

Answer