i need help with an assesment

Welcome to the forum.

We need a FAQ: How to do a minimal reproducible example ( reprex ) for beginners

If this is a school assignment please see FAQ: Homework Policy