a traders bought basket of tomatoes for $18. some of the tomatoes got damaged during transportation. the rest were sold at a total of $15.65. did he gained or loose. by how much? ​