A 48-inch board is to be cut into three pieces so that the second piece is twice as long as the first piece and the third piece is 5 times as long as the first piece. if x represents the length of the first piece, find the lengths of all three pieces.