Because there are six more teacups than water bottles, the money for buying teacups is at least 6*6=36.
160-36= 124
When 124 is divided by 25=4 plus 24, the remaining money is not enough to buy one water bottle, but four water bottles at most.
Then you can choose a 3 and try it. The results are as follows.
If the number of water bottles is 3, the number of teacups is 9,25 * 3+9 * 6 =129 is less than 160, so the number of water bottles is greater than 3.
Because the number of water bottles is less than or equal to 4 and greater than 3, the number of water bottles is 4 and the number of tea cups is 4+6= 10.
end