Like a few of the others here have stated, if you are working with a Realtor, you should be able to get a good price range of what homes are selling for. An offer that is based on facts from the area will stand a much better chance of getting accepted than an offer that is just "thrown out there" per se.
Quick question, why are you looking at the foreclosed home for $180k when the new homes are listed @ $150k? Most times repairs are always underestimated. If you think the home needs $10k in repairs, it's probably more like $15-20k. At that amount, you could make a reasonable offer on the new home, get the warranty(if offered) and save yourself the headache and aggravation.
Either way, I hope things work out for you.it sounds like you are doing your homework, which is what's needed to assure yourself you're doing the right thing.
How much they have loaned on it does not make a difference, as they are only focused on moving the property, how much they error in the past is not at issue.
Suggest you find local realtor who will run the same numbers for you, and that you make your offer very close to that number. If you are under what the bank believes they can move the property for, they will move on to the next offer. If you get to cute with your offer, all you will get is wasted time, wasted money and a cool picture of the house you wanted.