@Inginsub @LukeAlmighty yeah I just figured it out, that's it
the vertical lines are easy to get-- the left three lines must be the sum of the right three lines. that's 12 units
To get the horizontal lines you have to do some deduction that's kind of hard for me to explain for some reason-- no matter what the dimensions are, they're constrained, and the middle horizontal line is related to the length of the top line. As one shrinks, the other grows at exactly the same rate. So just eliminate the middle line entirely, make it zero, and you deduce that the top line must be 9, which is already the sum of the known-length horizontal lines. That's 18 units and so add them up get 30 whatever this was annoying.