Rita has to carry 177 apples from a farm to the market. How many baskets will she need, given that each basket can hold 39 apples?