Two get long jail terms for corruption