Assuming you want to find the length of the longest line segment, you would have to first determine where the longest line segment is.
If you can't do this straight away, then it'd be good to draw a diagram as I shown below, to visualise.
From there, you apply pythagora's theorem to the dimensions of the rectangular prism to find the length of the longest line segment.
I have attached the solution in a photo, including some explanation. Hope it helps :)
The total amount he should pay is $69.6
20% of 58 is 11.6
11.6+58=69.6
The difference means subtract
89.4 - 13.621 = 75.779
Let the price of 1 shirt be represented by = s
A pair of pants costs twice as much as a shirt, then the cost of pants is = 2s
The total cost of 1 pair of pants and 1 shirt is $18 , means : 
Solving this we get,


So, the price of 1 shirt is $6 and price of 1 pair of pants is = 2s = 2*6 = $12.