Amelia has a job baby-sitting for a neighbor. She is paid $20 plus $2.50 for each hour on the job. If Amelia wants to earn $40 to buy a new sweater, how many hours would she need to work?