Nathan is a plumber. He charges a fixed fee of $50 for a house visit and $20 per hour when he has to perform emergency repairs. Sydney calls Nathan to repair a flooded bathroom and he charges her $130. How many hours did Nathan spend fixing the problem?​