Let x be the volume of 34% sand soil and y the volume of 28% sand soil, both in cubic meters.
The total volume of the mix is x+y. Then:

There is (34/100)x sand on the first mix and (28/100)y on the second mix. Together, they must account for a total of (31/100)*64 of sand. Then:

These two equations form a 2x2 system of equations. Solve it using the substitution method to find the volume of each mix that will be needed. To do so, isolate x from the second equation and substitute the resulting expression into the first one:


Substitute back y=32 into the first equation and solve for x:

Therefore, 32 cubic meters of each kind of mix should be used.