The distances from an interior point to the parallel lines
DA and
BC add up to the distance between them, the height of the rhombus. So the height is
9+16=25, and the incircle, tangent to both lines, has radius
225. Center the incircle at the origin with
DA: y=225 and
BC: y=−225. Then
P has
y-coordinate
225−9=27, and
x2+(27)2=(225)2 gives
x=±12.
Let
α=∠BAD. Line
AB is tangent to the incircle and makes angle
α with the horizontal, so (orienting the figure suitably) it is
xsinα+ycosα=−225, and interior points satisfy
xsinα+ycosα+225>0. The condition
dist(P,AB)=5 reads
xsinα+27cosα+225=5. For
x=12 the left side exceeds
225, so
x=−12, and the equation becomes
24sinα−7cosα=15.
Substituting
7cosα=24sinα−15 into
sin2α+cos2α=1 yields
625sin2α−720sinα +176=0, so
sinα=54 or
12544. The root
12544 makes
cosα=724sinα−15 negative, contradicting
∠BAD<90∘. So
sinα=54, the side length is
sinα25=4125, and the perimeter is
4⋅4125=125.