Loretta studied very hard for the test, and she felt confident that she would pass.
This is a simple sentence connected with a coordinating conjunction. There should not be a comma because we add a comma only if the number of items is more than two. Why is there a comma here?