In a class election,the votes of the two candidates were in the ratio 4:5. If there were 45 students in the class, how many did each get?

4:5= two candidates

= two shares
= 4+5=9
1st= 4/9*45=20
2nd= 5/9*45=25

So 4:5 each gets 20:25

To find out how many votes each candidate received, we need to divide the total number of votes (45) by the total ratio (4+5=9) and then multiply each part of the ratio by that value.

Let's break it down step by step:

Step 1: Add up the ratio 4:5 to find the total number of parts.
4 + 5 = 9

Step 2: Divide the total number of votes (45) by the total number of parts (9):
45 ÷ 9 = 5

Step 3: Multiply each part of the ratio by the quotient from Step 2:
Candidate 1: 4 * 5 = 20 votes
Candidate 2: 5 * 5 = 25 votes

Therefore, the first candidate received 20 votes, and the second candidate received 25 votes.