Text this: On two combinatorial optimisation problems involving lotteries