A 2022 high school graduate could borrow as much as $39,500 in student loans by the time they complete their bachelor’s degree, according to NerdWallet’s projections.