The diagram shows an octagon consisting of 12 unit squares. The line segment bisects the area of the octagon. Point P is at the bottom-left corner of the octagon. Point Q lies on the vertical segment , where Y is at the rightmost point at height 1 and X is at the rightmost point at height 3. The portion of the octagon below consists of a rectangle of area 2 and a triangle with base 5. What is the ratio ?