"Slice" the rectangle into two right triangles (slice along the diagonal). Now you can use the Pythagorean theorem to calculate the length of the diagonal:
The medium sized orange would have 62 calories. To divide by 1/5, which in decimal form is 0.2, you just multiply 310 by 0.2, therefore, giving you 62. Hope this helps!