7:1 means 7/8 of the offered tickets are sold at night. 581 is 7/8 of the total night tickets offered
the total offered is 8/7 times 581 = 8(581/7) = 8(83) = 664 total offered for night & mornings.
3:5 ratio means 5/8 of the total offered go unsold (5/8)(8)(83) = 5(83)= 415 unsold morning tickets