If someone here can help within the Homework policy we will need a reproducible example (reprex)
and some idea where you are unclear on what to do.