Riverside Elementary School is holding a school-wide election to choose a school color. Five eighths of the votes were for blue, five ninths of the remaining votes were for green, and the remaining 48 votes were for red. How many votes were for blue? How many votes for green?