solve p347