Optimal solutions for 24 and 25