12. Solution is in the picture.