Final solution

Final solution