Let "x" represent the age of Brian.
Andrew is elder than Brian by 2 years, we can symbolize his age as "x+2"
Frank is twice as old as Andrew, we can symbolize his age as "2(x+2)"
Sarah has half the age of Brian's, we can symbolize her age as "x/2"
Frank ans Sarah's ages differ by 40 years, we can symbolize this as:
![2(x+2)-(x)/(2)=40](https://img.qammunity.org/2023/formulas/mathematics/college/uaatrxv87gqx1gpzrk7dfsmm2s7m98vum3.png)
Solve the term is parenthesis
![\begin{gathered} 2x+4-(1)/(2)x=40 \\ 2x-(1)/(2)x+4=40 \\ (3)/(2)x=40-4 \\ (3)/(2)x=36 \\ x=24 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/75pe5ddthqnojjp1dpvf1gqmhnq2f3s01a.png)
x=24 years
Andrew's age is
![x+2=24+2=26](https://img.qammunity.org/2023/formulas/mathematics/college/ttz5na3wmkiq537r6b61jmkay0iacn3ytb.png)
Andrew is 26 years old