One of the acute angles of a right triangle is 50​° and its hypotenuse is 7 inches. find the lengths of its legs to the nearest tenth of an inch.