The sum of the ages of Jeremy, Sebastian and Sophia in three years is 150. Currently, Sebastian is 4 years older than Jeremy. If Jeremy's age is 40, calculate Sophia's age three years from now?
The age of Jeremy three years from now will be 40+3 = 
<gadget id="calculator">40+3</gadget>
<output>43</output>
43 years.
Since Sebastian age is four years more than Jeremy's, Sebastian is currently 40+4 = 44 years.
In three years, Sebastian will be 44+3 = 
<gadget id="calculator">44+3</gadget>
<output>47</output>
47 years old.
The total age of Jeremy and Sebastian in three years will be 47+43 = 
<gadget id="calculator">47+43</gadget>
<output>90</output>
90.
If the total age of Jeremy, Sebastian and Sophia in three years is 150, then Sophia's age in three years will be 150-90 = 
<gadget id="calculator">150-90</gadget>
<output>60</output>
60.

<result>60</result>