# Difference between revisions of "2018 AMC 10B Problems/Problem 17"

## Problem

In rectangle $PQRS$, $PQ=8$ and $QR=6$. Points $A$ and $B$ lie on $\overline{PQ}$, points $C$ and $D$ lie on $\overline{QR}$, points $E$ and $F$ lie on $\overline{RS}$, and points $G$ and $H$ lie on $\overline{SP}$ so that $AP=BQ<4$ and the convex octagon $ABCDEFGH$ is equilateral. The length of a side of this octagon can be expressed in the form $k+m\sqrt{n}$, where $k$, $m$, and $n$ are integers and $n$ is not divisible by the square of any prime. What is $k+m+n$?

$\textbf{(A) } 1 \qquad \textbf{(B) } 7 \qquad \textbf{(C) } 21 \qquad \textbf{(D) } 92 \qquad \textbf{(E) } 106$

## Solution

Let $AP=BQ=x$. Then $AB=8-2x$.

Now notice that since $CD=8-2x$ we have $QC=DR=x-1$.

Thus by the Pythagorean Theorem we have $x^2+(x-1)^2=(8-2x)^2$ which becomes $2x^2-30x+63=0\implies x=\dfrac{15-3\sqrt{11}}{2}$.

Our answer is $8-(15-3\sqrt{11})=3\sqrt{11}-7\implies \boxed{\text{(B)}~7}$. (Mudkipswims42)