There's a calculation in my math book that goes from $(27\times 28/2) + 28$ to $28 \times (27/2 + 1).$ I don't understand how they went from the first to the second step. How did they switch the $+ 28$ to the $\times 28$?

Can someone intuitively explain this to me with the rules behind it?