A Lakeside man who shot his real estate agent twice in the head during an argument over a condominium deal was sentenced Thursday to 40 years to life in state prison.