An athlete goes to the gym to train for 90 minutes each day for as many days as possible. Write an equation that relates the number of days, d, that the athlete spends training if the athlete trains for 540 minutes.