Math

I attached the files.