Are you only going to be using the train for those two trips, or will there be some other stops or side trips? If so use
this link to get a railpass for up to 10 days. If you're just planning on just the to and from trips, you'll probably want to simply buy individual tickets at the station.