Please explain how to do the following and provide steps. This is…