An electrician charges $40 per visit, and $20 per hour of work. On a particular day, he made 3 visits and calculated that his average earnings were $50 per hour. Use this information to complete the statement. He worked hours that day.