Statement 1: An endothermic reaction can be spontaneous
Statement 2: Both the enthalpy and the entropy changes affect the Gibbs free-energy change of the reaction.
Both Statement 1 and Statement 2 are correct and Statement 2 is not the correct explanation of Statement 1.