Paul has a job raking leaves for a neighbor. He makes $7.70 an hour, plus $.45 for each bag he fills. Last Saturday he worked five hours and made a total of $39.85. How many bags of leaves did he fill?