A ten foot board is to be cut into two pieces so that the longer piece is three times the length of the shorter. Find the length of each piece.