Right is the X axis, Up is the Y axis, Forward is the Z axis.
Right is length or width, Up is height, Forward is depth.

To me, length and width are just ways to label differing sides of a rectangular object.