You can never make up your uphill losses by coasting downhill. It certainly helps, but regardless you always have internal fricton, tire friction, and air resistance both ways at a minimum: that is likely where most of your losses came in.
For what it's worth my daily commute I only (yes only) get 40 mpg out of my Geo Metro, but I have 3 very deep, very steep valleys that I have to go through. If I go the other direction to the city we do most of our shopping in I would guess I could easily pull 50 mpg as it's all flat as a board except for one spot it goes under a railroad.
__________________
|