The ratio of the number of boys to that of girls in a school is 4:3. If the number of girls in the school is 162, find the number of boys in it. Then find the ratio of the number of girls to the total number of students in the school.​