solve 7 problem