A high school teacher with a 6-figure side hustle says a 2-part strategy helped him become a millionaire at 35