A 40 inch board is to be cut into three pieces so that the second price is 4times as long as the first piece and the third piece is 5 times as long as the first piece find the length of all three pieces