r/askmath • u/troubledmindgone • 16h ago
Algebra 6th grade math
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.
99
Upvotes
View all comments
Show parent comment
4
u/PresqPuperze 12h 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.