Update README.md
Browse files
README.md
CHANGED
@@ -50,6 +50,52 @@ cost per apple: 6 / 0.5 = 12 apples.
|
|
50 |
So, you now have a total of 36 apples.
|
51 |
|
52 |
As for the river, it's not specified which city it runs near, so we can't pinpoint its exact location. But at least you found those coins!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
```
|
54 |
|
55 |
## 🧩 Configuration
|
|
|
50 |
So, you now have a total of 36 apples.
|
51 |
|
52 |
As for the river, it's not specified which city it runs near, so we can't pinpoint its exact location. But at least you found those coins!
|
53 |
+
|
54 |
+
>>> Two years ago, I was three times as old as my brother was. In three years, I will be twice as old as my brother. How old is each of us now?
|
55 |
+
Let's define the current age of you and your brother with variables.
|
56 |
+
|
57 |
+
You are Y years old.
|
58 |
+
Your brother is X years old.
|
59 |
+
|
60 |
+
Two years ago:
|
61 |
+
You were Y - 2 years old (because we're looking back in time).
|
62 |
+
Your brother was X - 2 years old.
|
63 |
+
|
64 |
+
Since two years ago, you were three times as old as your brother was, the equation would be:
|
65 |
+
|
66 |
+
Y - 2 = 3(X - 2)
|
67 |
+
|
68 |
+
Simplify and solve for X:
|
69 |
+
|
70 |
+
Y - 2 = 3X - 6
|
71 |
+
Y = 3X - 4
|
72 |
+
|
73 |
+
Now we know that Y (your current age) is three times your brother's age minus four. Let's use this to find your current age.
|
74 |
+
|
75 |
+
In three years:
|
76 |
+
You will be Y + 3 years old.
|
77 |
+
Your brother will be X + 3 years old.
|
78 |
+
|
79 |
+
Since in three years, you'll be twice as old as your brother:
|
80 |
+
|
81 |
+
Y + 3 = 2(X + 3)
|
82 |
+
|
83 |
+
Simplify and solve for X (your brother's current age):
|
84 |
+
|
85 |
+
Y + 3 = 2X + 6
|
86 |
+
Y - 2X = 3
|
87 |
+
(3X - 4) - 2X = 3
|
88 |
+
X - 4 = 3
|
89 |
+
X = 7
|
90 |
+
|
91 |
+
Now that we have your brother's current age, we can find yours:
|
92 |
+
|
93 |
+
Y = 3X - 4
|
94 |
+
= 3(7) - 4
|
95 |
+
= 21 - 4
|
96 |
+
= 17
|
97 |
+
|
98 |
+
So you are currently 17 years old, and your brother is 7 years old.
|
99 |
```
|
100 |
|
101 |
## 🧩 Configuration
|