can you please work the mathproblem (to show how answer was found ?)

Given:
The number of whole pies, x=6.
The number of whole cakes, y=4.
Each pie is cut into 1/3 slices.
So, the number of slices of pies obtained after cutting one pie is,
[tex]n=\frac{1\text{ }}{\frac{1}{3}\text{ }}=3[/tex]Now, the number of slices of pie made by cutting x=6 whole pies is,
[tex]\begin{gathered} N=nx \\ =3\times6 \\ =18 \end{gathered}[/tex]Therefore, Justin made 18 slices of pies.
Hence, option D is correct.
[tex]\frac{1}{3}+\frac{1}{3}+\frac{1}{3}=\frac{1}{3}\times3=1[/tex]