The cardboard is a rectangle. The diagonal and the sides form a right triangle. Use the Pythagorean Theorem: