I'm assuming from your response that the womb has to exist before the eyes? Can the process determine (without intelligence) what is expensive and what isn't?
Womb, egg - it doesn't really matter, the slow progressive process is determined entirely by random mutations, 'decided on' by natural selection.
In terms of determining what's 'expensive' natural selection makes and guides that determination; If you're a predator, the regulating factor on the size of things such as teeth, claws, long strong legs for running fast, are determined entirely by the environment.
If you're born with legs that aren't fast enough and you can't catch prey - it's not an intelligent process that kills you; nature kills you because you're not equipped to operate in that environment, so therefore having slow legs means you're more likely to die, so predators with fast legs go on.
It makes sense based on what we know now but this unguided unintelligent process couldn't have determined where the best possible placement of an eye was. Could it really?
Well, it can and does - organisms actually use chemical processes to determine where things are placed, where eyes go, where legs, organs etc all go.
These mechanisms are the results of complex chemistry and biological processes - there's no mystic 'weird' answer, it's just the way it is.
I find it quite interesting, because even though you have DNA which contains all the information, it's still down to local units obeying local rules, that is liver cells build livers, hair cells build hair, sperm cells build sperm etc etc - but how does the information in the DNA actually determine that everything goes in the right place; turns out it's down to embryonic chemical processes, it's discussed in detail in some of Watson's work, it's incredible.
If bad mutations happened we could have ended up with eyes on our shins then. Just as well we did good.
Well I haven't heard of eyes on shins, but there are thousands and thousands of other physical mutations, most of them don't do very well at all, if they don't do well - they're not selected, and don't go on.