Jessica works at a restaurant. She earns $5 an hour and received $100 in tips on Saturday night. If she earned $140 total, how many hours did she work?