Formation of the resonant system HD 60532