How old was Francis Scott when he wrote star spangled banner?

he was 20