solve two middle ones