awk '/Name/ { readline; num=$0; readline; print num, $0; }' < inputfile
`readline` reads the next line of the input into `$0`. So when `Name` is matched, it reads the next line, puts it into the `num` variable, then reads the second line, and then prints `num` and that line together on one line.