Complete solution

Complete solution