The total average age of three friends is 40. Jared is ten years older than Hakimi, and Molly's age is 30. How old is Hakimi? Let's think step by step and output the final answer after "####".
user
The total age for the three friends is 40*3 = <<40*3=120>>120
If Molly's age is 30, then Jared and Hakimi have a total age of 120-30 = 90.
Let's say the age of Hakimi is x.
Since Jared is 10 years older than Hakimi, Jared is x+10 years old.
Jared and Hakimi's total age is x+(x+10) = 90
This translates to 2x=90-10
2x=80
Hakimi's age is x=80/2
This gives us x=<<40=40>>40, which is Hamkimi's age.
#### 40
The total average age of three friends is 40. Jared is ten years older than Hakimi, and Molly's age is 30. How old is Hakimi?
train