
Extend the cutting plane. In the bottom face, line
DM meets line
CB extended beyond
B at a point
K; since
MB∥DC and
MB=21DC, segment
MB is a midline of triangle
KDC, so
B is the midpoint of
CK and
CK=2. The plane also cuts edge
BF at a point
P, and the piece of the cube cut off past the plane is the pyramid
KDCN with the small pyramid
KMBP sliced away.
Pyramid
KDCN has base
DCN, a right triangle with legs
DC=1 and
CN=21, and its apex
K is at distance
CK=2 from the plane of that base, so its volume is
31⋅41⋅2=61. Pyramid
KMBP is similar to
KDCN with ratio
KCKB=21, so its volume is
81⋅61=481.
The smaller piece therefore has volume
61−481=487, and the larger piece has volume
1−487=4841, giving
p+q=41+48=89.