I changed x into z so that length could be x and width could be y.
That's fine, Gwen. You may want to consider writing a cross-hash on letter
z, to distinguish it from digit 2.
Everything looks good on your second attempt, with two exceptions.
1) The first two lines below are not correct. Somehow, you'd recovered, as the decimal approximation for
z is correct.
2) Your reported length (5.1815) is not correctly rounded. (Correcting it will not change your rounded volume.)
I don't know whether your class follows the rules of Significant Figures. If it doesn't, then you may ignore the following comment.
If you're going to round a dimension to four decimal places, then you ought to round each dimension to four decimal places. In that case, each of the dimensions would be reported to five significant figures. Their product could not exceed five significant figures, so that would justify reporting the volume as 80.244 cubic inches (five significant figures).
Good job, overall.
PS: I don't see anything for the second box. Have you already determined that the other possibility has a smaller volume?