On Mars, 3 bags of MartianMallows cost 24 space rocks. If each bag contains 10 MartianMallows, how many space rocks does four MartianMallows cost? Express your answer as an improper fraction.