A piece of string 175 cm in length was cut into two pieces, the ratio of whose length was 5:2. Find the length of each piece.