Hello!
The answer is:
Andre exchanged 450 dollars for pesos.
Why?
To solve the problem, we need to write two principal equations in order to establish a relation between the number of dollars before and after the trip.
So,
Before the trip, we have:
![Dollars_(beforetrip)*rate=9000pesos\\\\Dollars_(beforetrip)*(20pesos)/(1dollar) =9000pesos\\\\Dollars_(beforetrip)=9000pesos(1dollar)/(20pesos)=450dollars](https://img.qammunity.org/2020/formulas/mathematics/high-school/3u9xz7azzlpk3pt6wnsoqyutpp71api836.png)
We have that he exchanged 450 dollars for pesos.
Also, we can calculate how many pesos he had before he exchanged it back to dollars, so:
After the trip, we have:
![Pesos{AfterTrip}*rate=(1)/(10)Dollars_(BeforeTrip)\\\\Pesos{AfterTrip}*(1dollar)/(20pesos)= (1)/(10)Dollars_(BeforeTrip)\\\\Pesos{AfterTrip}= (1)/(10)Dollars_(BeforeTrip)*(20pesos)/(1dollar)\\\\Pesos{AfterTrip}= (1)/(10)*450dollars*(20pesos)/(1dollar)=900pesos\\](https://img.qammunity.org/2020/formulas/mathematics/high-school/di5tkpicj8ihfm4n6dgbuxcsbg5qi5d249.png)
We have that he had 900 pesos before he exchanged it back to dollars.
Hence, we know that:
Andre exchanged 450 dollars for pesos.
Have a nice day!