Solution for P23-25