
This is supposed to be a middle school level math problem, I thought it should be ${}_9 C_3 - 8$ where 8 is the number of straight lines, but not sure. Thanks for any help!

This is supposed to be a middle school level math problem, I thought it should be ${}_9 C_3 - 8$ where 8 is the number of straight lines, but not sure. Thanks for any help!
Copyright © 2021 JogjaFile Inc.
The quantity $\binom93-8$ should give the total number of triangles, but ignores the restriction that one side must have length $\sqrt2$.
If we include that restriction, then:
Altogether, we get $56 - 8 - 4 = 44$ triangles.