You should find out the elevation profile (via Google Maps bike directions, Strava or RideWithGps etc. route builder). If it's mostly flat, I think you could start out doing either a mixed commute, if you can drive or bus part way, or just bike one way.
If it's hilly, then as a beginner it will be very hard unless you are already very fit. I have a reasonably hilly 15+ mile one-way commute. First time I did it back in Ferbruary, it took 1.5 hrs. I'm down to 50 minutes now, riding roundtrip 2-4 days out of the week since March. Hills may be tough, but without any other training, they made me much stronger and faster, so don't be discouraged if that's the kind of terrain you have and your goal is to get fitter.