I face difficulty in solving these two questions

I face difficulty in solving these two questions.
Please solved it.
Q2- svg path
Q3- canvas