A pie has 360 degrees, so a pie cut into 5 equal pieces produces 5 slices that each measure 360 / 5 = 72 degrees.
A small slice measures 27 degrees fewer than a large slice, so it measures 72 - 27 = 45 degrees.
To find the number of pieces a pie should be cut into so that each piece is a small slice, we need to determine how many degrees each slice measures. To do this, we divide 360 by the number of pieces:
360 / n = 45
Solving for n, we get:
n = 360 / 45 = 8
So, the Tasty as Pi Bakery should cut a whole pie into 8 equal pieces so that each piece is a small slice.