MetLife Interview Question

How do you code this situation in R What Dax function is used to do conditional formatting based on two Rules