please follow the requirements to complete the questions 2

the first file is the question and the second and third are the data set you need to import to the R studio to complete the question. please let me know if you have any questions