ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 05 Sep 2020 01:01:26 +0200Can you solve a math problem: x+y=42, x-y=30?https://ask.sagemath.org/question/53247/can-you-solve-a-math-problem-xy42-x-y30/ In page 43, math problem 1, on Math 4 Workbook, Part One, Vietnamese Education Publishing House: <br>
*The sum of mother and son's ages is 42. The mother is 30 years older than her son. How old is the mother and her son?*Tue, 01 Sep 2020 11:05:51 +0200https://ask.sagemath.org/question/53247/can-you-solve-a-math-problem-xy42-x-y30/Comment by dan_fulea for <p>In page 43, math problem 1, on Math 4 Workbook, Part One, Vietnamese Education Publishing House: <br>
<em>The sum of mother and son's ages is 42. The mother is 30 years older than her son. How old is the mother and her son?</em></p>
https://ask.sagemath.org/question/53247/can-you-solve-a-math-problem-xy42-x-y30/?comment=53306#post-id-53306Try something like:
sage: var('x,y');
sage: solve([x + y == 42, x - y == 30], [x, y])
[[x == 36, y == 6]]
(Or just ignore sage code, and use plain thoughts or simple drawings.)Sat, 05 Sep 2020 01:01:26 +0200https://ask.sagemath.org/question/53247/can-you-solve-a-math-problem-xy42-x-y30/?comment=53306#post-id-53306Answer by tmonteil for <p>In page 43, math problem 1, on Math 4 Workbook, Part One, Vietnamese Education Publishing House: <br>
<em>The sum of mother and son's ages is 42. The mother is 30 years older than her son. How old is the mother and her son?</em></p>
https://ask.sagemath.org/question/53247/can-you-solve-a-math-problem-xy42-x-y30/?answer=53248#post-id-53248Sage is able to solve such systems of equations, you can have a look at the tutorial : https://doc.sagemath.org/html/en/tutorial/tour_algebra.htmlTue, 01 Sep 2020 11:37:38 +0200https://ask.sagemath.org/question/53247/can-you-solve-a-math-problem-xy42-x-y30/?answer=53248#post-id-53248