Ralph is an electrician. He charges an initial fee of $37.50, plus $25 per hour. If Ralph earned $187.50 on a job, how long did the job take?