Input (grade 13): Octal is converted to binary and then binary to hexadecimal, grouping digits by fours, which correspond each to a hexadecimal digit.
Output (grade 11): Octal is similar to hexadecimal because they are both easily converted to binary. Where Octal is equal to three digit binary, hexadecimal is equal to four digit binary.