Can someone please help me write the rule for this table and explain how you did it? Its a small part of my project and I'm not really sure how to do it. Thanks!

Can someone please help me write the rule for this table and explain how you did it Its a small part of my project and Im not really sure how to do it Thanks class=