There is an app called "Block Tool" (android, maybe iOS)that will do that in steps. Tells you how many squares, triangles, whatever you need for block, then in the end has pages that tell you how many squares, triangles you can get out of a yard.
Has at least 4 sizes of blocks. 3" to 12"