My try for the first problem

It too late, but I'm still uploading it