The government will give you at least the amount of credit on the loan with the longest payment history. This is an extraordinarily generous decision by Department of Ed, and it allows many borrowers to consolidate strategically to get additional credit on more recent loans. In one case, a surgeon used an old loan from undergrad to get years of extra PSLF credit on his med school loans by consolidating.