(1/2) (4p+8)-(p+9)
$$\\(1/2) (4p+8)-(p+9)\\ =2p+4-(p+9)\\ =2p+4-p-9\\ =p-5$$
You need to use the distribute property