Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: of all the homes on gotham street , 1 / 3 are termite - ridden , and 4 / 7 of these are collapsing . what fraction of the homes are termite - ridden , but not collapsing ?
