Education and inequality in Finland, Spain and Brazil