Let x be the money Antonio has.
Let y be the money Dominic has.
x-18=y (here, I just put in the equation)
Since we are not given any information about the money that Dominic has or Antonio has, we would have to create an equation that would fit all the situations.
Hope I helped :)