r/askmath • • 1d ago

Resolved 6th grade math

Post image

I helped my kid through this problem but auto grader did not like the answer 9x-4 so I’m wondering if I incorrectly helped.

Steps here would be find perimeters

4(3x)= 12x

X+2+x+2+x =3x+4

Difference 12x - (3x+4) = 12x -3x -4 = 9x-4
This would assume the square is larger than the triangle.

Edit: My kid submitted the problem in the morning, the auto graded said the correct answer was 9x+4.

We sent an email and the teacher thanked us for letting her know. It was on the board that everyone would get free credit on that problem.

Thank you everyone for your time looking at this problem with me, and assuring me that I wasn’t 100% forgetting how to do this. You guys truly are amazing. Once again, thank you everyone.

136 Upvotes

58 comments sorted by

14

u/troubledmindgone 1d ago edited 1d ago

The auto grader came back with 9x+4.

Edit: sorry about the late reply. It allows 2 or 3 tries to let you know if it’s correct and gives correct answer after submitting. They submitted it this morning after thinking about it all night.

14

u/mizboring 1d ago

In that case, I would send a screenshot to the teacher. There is something wrong with the programming of the question.

Depending on the software and the teacher, they may or may not be able to fix the code, but they certainly can give the student points in the gradebook and probably remove the question for the next year. That's what I tell my students to do if they find a problem in an online assignment.

3

u/troubledmindgone 20h ago

Yes, she sent an email with the screenshot in this morning. I’m not sure she’d be able to explain it though.
So I asked her to sub 1 in for X and find that the computer’s equation is wrong.

10

u/justhereforfighting 23h ago

The question is clearly programmed wrong. You had it right the first time. Think of it when x = 1. The square has a perimeter of 12. The triangle has a perimeter of 7. That’s a difference of 5, which is the same as 9*1-4=5 if you substitute the x for 1 in your original answer. 9x+4 would give you a difference of 11. 

3

u/megahercio 1d ago

It forgot the parenthesis

81

u/Larry_Boy 1d ago

LGTM. My guess is the auto grader is wrong. It happens. Maybe it wants "9X-4", maybe you typed "9x-4 " and it is looking for "9x-4". Or the auto grader has the wrong answer, like "-4".

42

u/troubledmindgone 1d ago

Yesterday there were spaces between the x value the symbol and the added value such as 3x + 9 was incorrect but 3x+9 was correct. They entered it in correctly this time, just a bit baffled.

37

u/testtdk 1d ago

Yeah, that’s some bad programming.

22

u/Underhill42 1d ago

Right? It takes like two seconds to add the code to remove white space from the answers and convert to canonical form (all upper- or lower-case). Maybe a few minutes if you have to actually do it manually rather than having decent string-processing routines available.

And only a bit more to e.g. convert all implied multiplication to explicit multiplication.

I'd be thoroughly embarrassed to find such a glaring "Programming 101" shortcoming in my code.

5

u/PresqPuperze 1d ago

„Decent string processing routines“ - I mean, this isn’t some crazy regex manipulation you need to do, you simply put a .lower().replace(" ";"") in there and that’s it. You’re also not dealing with enormous strings in terms of length, it doesn’t matter how inefficient the runtime is here, just make it work for gods sake.

2

u/Underhill42 1d ago

Not every language has such convenient string manipulation routines built in.

Use a few that don't, and you appreciate them much more.

-2

u/Due-Explanation-6692 1d ago

Try this in C.

2

u/PresqPuperze 18h ago

It’s a website. Do you really, wholeheartedly believe, that the code running this is done in C?

And even IF you need to do it in C: As I already said, runtime is completely irrelevant here, so a naive approach of just looping through the string with two indices in parallel and checking for a whitespace, replacing it with the next character in the string, is totally fine.

4

u/MasemJ 1d ago

It should also break down, like you would for sentence duagrams, the componrnts into a sorted tree like structure. Like it should accept "x*3+9" and "9+3x", because following PEMDAS, those are equal

3

u/Underhill42 1d ago

That would certainly be nice, but that's MUCH more difficult to do, and there is a standardized canonical form in which polynomials are generally expressed and students should get in the habit of using, in your example case: 3x+9. All other formulations may be technically equivalent, but do not comply with the standardized form.

Much like you could express 2⅓ as ⅓+2 or 7/3, or..., but 2⅓ is the standard form you're expected to express mixed fractions in.

1

u/MasemJ 1d ago

At high school and college, absolutely. 6th grade, mot so much.

2

u/Underhill42 1d ago edited 1d ago

6th grade VERY much - they're not learning anything difficult yet, just potentially confusing. Making it the perfect time to introduce simple conventions designed to improve clarity.

Heck, where mixed fractions are concerned, I think all of my math teachers would have marked anything but 2⅓ as wrong starting somewhere in elementary.

Pretty sure all my math teachers from around halfway through pre-algebra onward would have done the same for 9+3x.

1

u/testtdk 1d ago

I mean, you may as well practice doing this correctly from the start. It makes everything easier in the long run.

2

u/Groomsi 1d ago

Or |9x-4|

1

u/Larry_Boy 18h ago

I don't generally interpret "difference" to mean |x-y|, I interpret it to mean x-y. So, What is the difference in height of Jack and Jill, is not the same as what is the difference in height of Jill and Jack. If you want |x-y| that is the "magnitude of the difference of", but I'll grant you that the phrasing "difference between" it is at least ambiguous.

0

u/ChurriiMelt 21h ago

auto graders can be so stubborn

7

u/TurnoverOk5635 1d ago

My best guess is |9x-4|.

3

u/e_before_i 1d ago

Yeah this must be the right answer, technically x could be ≤4/9, and difference can't be negative.

2

u/56789ya 1d ago

So 4-9x would be just as legitimate an answer as 9x-4

2

u/e_before_i 1d ago

No, because if x > 4/9 then that would also give a negative number.

That's why the |...| is important. The absolute value ensures that it's positive regardless of the value of X (assuming X is a positive number, which it must be for geometry.

I wanted to say euclidean geometry, but I don't know of any non-euclidean geometry that allows for shapes to have negative side lengths. Either way, this is 6th grade math, so that's irrelevant, but I'm definitely curious now.

1

u/marz64_ 1d ago

The difference can definitely be negative in this case, simply means the triangle has a larger perimeter compared to the square

0

u/e_before_i 1d ago

Lmao do you think my confusion here is I don't think x>4/9 ?

It's just not how we use numbers. No one says "the difference between me and Elon is negative $1 trillion."

1

u/marz64_ 1d ago

That's true, they are looking for a positive answer and giving a negative answer to this question would be weird, but saying "and difference can't be negative" is not true. There is nothing invalid saying the difference in perimeters is -9 units, mathematically speaking. "The triangle has a perimeter -9 units larger than the square".

1

u/e_before_i 1d ago

Maybe my claim is too strong. I'd say it's ambiguous. Like if we're talking about my age vs my grandpa, I would never say it's -48 years, you know?

1

u/56789ya 21h ago

The difference as in the result of a subtraction problem can be negative, but this problem says, "the difference between the perimeters," and doesn't say which to subtract from which

1

u/bartekltg 1d ago

>  difference can't be negative.

This is a news to me;-)

The ask about the difference between the perimeter of teh square and triangle. So
P_sq - P_tr
Of course the difference can be negative.
Looking at the sign of the difference between A and B we figure out which one is bigger.

0

u/e_before_i 1d ago

Lmao do you think my confusion here is I don't think x>4/9 ?

It's just not how we use numbers. No one says "the difference between me and Elon is negative $1 trillion."

2

u/bartekltg 1d ago

I do not know how FB clickbaits use the word difference. I know how mathematicians and math educators use it.
If a mathbook ask about a difference between A and B, they mean A-B, not |A-B|

1

u/e_before_i 1d ago

Maybe my claim is too strong. I'd say it's ambiguous. Like if we're talking about my age vs my grandpa, I would never say it's -48 years, you know?

Edit: point being it's a confusion of English being imprecise that both readings are acceptable. This is 6th grade math, reading it as common English is reasonable even if it's stupid.

0

u/novian14 1d ago

6th grader got absolute value?

2

u/troubledmindgone 1d ago

They did absolute values maybe a month ago. But nothing more than |-7 |which would be 7. Or |9| which would be 9.

39

u/96ataraxia 1d ago

There is nothing wrong with your answer. It must be a bug on the page.

4

u/YzaVique 1d ago

lol those graders are always broken, smart catch on the math tho

2

u/duskyWinks 1d ago

yeah the grader's probably just being picky, you explained it clean though

1

u/AngelicNSofty 1d ago

i like a guy who can spot these bugs that quick

4

u/AlterEgo5695 1d ago

Likely just a problem with the input mask. Possible solutions:

  • 9*x-4: In case the input mask does not understand juxtaposition
  • |9x-4|: In case they expect absolute values
  • |9*x-4|: In case both are true

There are probably even more options I did not think about right now.

4

u/Philipp_CGN 1d ago

What about -9x+4?

1

u/Groomsi 1d ago

Negative 9x?

4

u/Philipp_CGN 1d ago

The difference they are looking for can be perimeter of square minus perimeter of triangle (i.e. 9x-4) or it can be perimeter of triangle minus perimeter of square (i.e. -9x+4)

6

u/Key-Significance8000 1d ago

Is it possible that the 3x above the square means that's the entire perimeter of the square and not the side length? I know it sounds stupid but I wouldn't expect an answer like 9x-4 until the students are further along in algebraic concepts.

9

u/tooblandtoroast 1d ago

I wouldn't expect an answer like 9x-4 until the students are further along in algebraic concepts

Cmon, it's 6th grade math, for 13-year olds. They are not stupid

4

u/random_anonymous_guy PhD, Mathematics, 2015 1d ago

Kids are already in seventh grade when they turn 13.

But I work with plenty of high school students who struggle with stuff like this.

3

u/AdjectiveNounNNNN 1d ago

Yes, high schoolers struggle with this, but that's because they're below grade level, not because this is too hard for 6th grade.

2

u/Bichon-Impossible 1d ago

"This would assume the square is larger than the triangle."

not at all.

only if X>= 4/9

2

u/Snoo_52320 1d ago

What curriculum is this?

4

u/test_tutor 1d ago

They maybe meant the 3x is the perimeter of the square, not the side. Try 4?

Badly depicted for sure.

-1

u/Albstein 1d ago

3x is the full perimeter of the square:

Square => 3x

Triangle => x+x+2+x+2 = 3x + 4

If you compare the triangle's 3x + 4 with 3x from your square you can see the difference without really solving any equation.

7

u/Aromatic-Ebb-4007 1d ago

Why would 3x be the full perimeter of the square when it only has 3x on one side of it while the triangle lists a measurement on each side?

-1

u/Albstein 1d ago

Because peopale are lazy and the result makes sense. What you cannot see does not exist. Most 12 year olds do not see more, than there is.

5

u/KeyserHD 1d ago

A square has equal sides so labelling every one is redundant, triangles do not need to have equal lengths so labelling all of them is necessary. To assume 3x is the entire perimeter is absurd

0

u/Odd-Ad-8369 1d ago

The difference will be an absolute value. Ie go the opposite direction and you will get -9x+4

0

u/One-Requirement2748 1d ago

Either they mean the whole squares perimeter is 3x. I think being 6th grade, this would be the case.

Or else try it from the other side= 4-9x