I'm also a beginner but my thought are: pump uses 300W just to run and that's after starting up, so the 300W inverter will be too small I expect. "Smallest" battery is subjective but 300W for 2 hours is 600Wh, that would be 100Ah battery (using 50% discharge), which needs to be fully charged every day (no rainy days). 850W panels should easily be enough. Better get a non beginner to weigh in on this as well.