John spent 34 hours doing homework. If 14 hours of that time was spent doing math homework, what fraction of his total time spent doing homework did he spend on math?