What is the volume of the prism

From the graph , we have to find the length, width and height of the prism to calculate volume .
And for that we have to use distance formula.
[tex] Length= \sqrt{(4-4)^2 +(6-0)^2 + (0-0)^2 } = \sqrt{36} =6 \\ Width = \sqrt{(4-0)^2+(6-6)^2+(0-0)^2} = \sqrt{16}=4 \\height = \sqrt{(4-4)^2 +(6-6)^2 +(2-0)^2 } = \sqrt{4} =2 [/tex]
And the formula of volume is
[tex] Volume = length * width * height = 6*4*2=48 \ cubic \ units [/tex]