School achievement and failure in Portuguese and Spanish speaking countries