you cannot hire a h1b for 40k/year, minimum prevailing wage requirement prevents you from doing so.
This was for a programming role in New York City- I do not know anyone that gets paid $45k. I'm unsure how they calculate prevailing wages, but I'd suggest that the formula could do with some tweaking.