A restaurant server's monthly wage is $1,700. He also earns $10 for each additional hour he works. If he was paid amount p dollars last month, how many extra hours did he work?