What is the length of the diagonal of the following rectangular prism? Round to nearest whole number

Given:
Length = 12 inches
Width = 5 inches
Height = 7 inches
To find:
The length of the diagonal of rectangular prism.
Solution:
Length of the diagonal of the rectangular prism formula:
[tex]d^2=\sqrt{l^2+w^2+h^2}[/tex]
Substitute the given values.
[tex]d^2=\sqrt{12^2+5^2+7^2}[/tex]
[tex]d^2=\sqrt{144+25+49}[/tex]
[tex]d^2=\sqrt{218}[/tex]
Taking square root on both sides.
[tex]d=14.765[/tex]
[tex]d=15[/tex] (nearest whole number)
The length of the diagonal of the rectangular prism is 15 inches.