It is on a three-month mission to analyze samples of Martian soil and subsurface ice , to study the history of water on Mars and to determine whether the planet could support life .