Jesse earns $3 each time he walks a dog. Last Monday and Tuesday, he earned a total of $45. He walked 8 dogs on Tuesday. How many dogs did Jesse walk on Monday?