Design a three-line to eight-line (3-to-8) decoder which will decode three input variables into eight outputs. An application of this decoder is a binary-to-octal conversion, where the input variables represent a binary number and the outputs represent the eight digits in the octal number system.