The fish tank problem:
x = # of days
180 - 8x = 160 - 6x
Add 8x to both sides and subtract 160 from both sides.
20 = 2x
Divide both sides by 2
10 = x
It will take 10 days for the fish tanks to have the same amount of water in them.
The sand castle problem:
x = # of minutes.
180 - 8x = 160 + 6x
Add 8x to both sides and subtract 160 from both sides.
20 = 14x
Divide both sides by 14
x = 10/7 mins
After 10/7 mins their sand castles will be the same height