The cost of 5 hats and 1 scarf is $47. The cost of 2 hats and 2 scarves is $40. How much does one hat cost

h=27/4

h=$6.75

I HATE THIS SITE IT GOT THEM ALL WRONG FOR ME

The cost of 5 hats and 1 scarf is $47. The cost of 2 hats and 2 scarves is $40. How much does one hat cost?

To find out the cost of one hat, we can set up a system of equations using the given information.

Let's say the cost of one hat is "h" dollars and the cost of one scarf is "s" dollars.

From the first statement, we know that 5 hats and 1 scarf cost $47. This can be written as:

5h + 1s = 47

From the second statement, we know that 2 hats and 2 scarves cost $40. This can be written as:

2h + 2s = 40

Now we have a system of equations:

5h + s = 47 (Equation 1)
2h + 2s = 40 (Equation 2)

To solve this system of equations, we can use the method of substitution.

First, let's solve Equation 2 for "s" in terms of "h":

2h + 2s = 40
2s = 40 - 2h
s = (40 - 2h) / 2
s = 20 - h (Equation 3)

Now substitute Equation 3 into Equation 1:

5h + (20 - h) = 47
5h + 20 - h = 47
4h = 47 - 20
4h = 27
h = 27 / 4
h = 6.75

Therefore, one hat costs $6.75.

5h+1s = 47

2h+2s = 40
since s=47-5h,
2h+2(47-5h) = 40
Now finish it off