Im trying to help my daughter with some math homework and Im stuck can you help me please this is the problem

Jeremy has been home sick with the flu for the last 7 days. While absent from school, he got 31 get well cards from friends. there were 5 more cards from girls than boys. he got a card from each one of his classmates, and 6 other cards from girls in other classes. how many boys and how many girls are there in Jeremys class

To solve this problem, let's use some variables:

Let's say the number of boys in Jeremy's class is "B", and the number of girls is "G".

According to the problem, Jeremy received 31 cards in total. This includes cards from his classmates and cards from other classes.

We also know that there were 5 more cards from girls than boys. So, we can write an equation:
G = B + 5

Jeremy got a card from each one of his classmates, so we know that the total number of boys and girls in his class is the same as the number of cards he received from his classmates. Therefore:
B + G = 31

We'll substitute the value of G from the first equation into the second equation:
B + (B + 5) = 31

Now we can solve the equation to find the values of B and G.

Combining like terms:
2B + 5 = 31

Subtracting 5 from both sides:
2B = 26

Dividing both sides by 2:
B = 13

Now, we can substitute the value of B back into the first equation to find G:
G = 13 + 5
G = 18

So, there are 13 boys and 18 girls in Jeremy's class.

To solve this problem, we can use a system of equations.

Let's say the number of boys in Jeremy's class is 'b', and the number of girls is 'g'.

From the given information, we know that Jeremy got a card from each one of his classmates, so the total number of cards from his classmates is equal to the total number of boys and girls in his class: b + g.

We also know that Jeremy received 31 get-well cards. Out of these, 6 were from girls in other classes, so the remaining cards were from his classmates (b + g - 6).

According to the problem, there were 5 more cards from girls than boys. So, we can set up the following equation based on the information:

b + 5 = g

Now, we have two equations:

1) b + g = b + g - 6 (representing the total number of cards)
2) b + 5 = g (representing the additional cards from girls)

To solve this system of equations, we can substitute the value of 'g' from equation 2) into equation 1).

Substituting g = b + 5 into equation 1):
b + (b + 5) = b + (b + 5) - 6
2b + 5 = 2b - 1

Simplifying the equation:
5 + 1 = 2b - 2b
6 = 0

However, this equation is not possible; it doesn't have a valid solution. This means there is likely an error or inconsistency in the problem statement.

You may want to double-check the information or provide additional details to resolve the issue.