A rod under forty? Up until I found this forum and was infected with the bait monkey virus, I was blissfully ignorant of expensive equipment, I got by with Walmart specials, lol. My first "expensive" reel was a pinnacle platinum plus, my how things have changed! Growing up reel maintenance consisted of dunking my reel in the river when it got gritty. I knew nothing, I caught allot of smallies 14" was a giant and redeyes. I also lost allot of fish, I didn't have the equipment to handle anything above a panfish. When I started taking fishing seriously and stated spending more my eyes were opened. I could feel the bottom, tell the difference between wood rock mud vegetation. I started catching bigger fish, I had the equipment to handle it. My point is I was ignorant, to have a quality rod you will have to spend more.
Anyway back to your question, if you are near a academy, you can get a rod all graphite for as little as 10 bucks on sale. If Walmart is what you have to deal with the Shakespeare Durango is all graphite exposed reel seat for around 20, these are cheap rods that have rod blanks that go all the way to the butt of the rod. Dick's has the Berkley Amp, they all have the Berkley Shock I think these will run around 40. I wouldn't classify any as a good rod but they'll do. What you want to look for is all graphite, blanks that are exposed at the reel seat. Typically on cheap rods, if the blank isn't exposed at the seat, the blank doesn't extend to the butt of the rod. If you can spend 60 then you can start getting decent rods, the Convergence line from Shimano comes to mind. Decent sensitivity and life time warranty. Sellus are less expensive around 50, Walmart carries some Abu's around 50 Vendetta maybe. Good luck